Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Dec 2011 13:10:28 -0500
From:      Philippe Saint-Pierre <stpere@gmail.com>
To:        freebsd-wireless@freebsd.org
Subject:   patch proposal for marvell driver
Message-ID:  <CAB96EKRBLN2cvavtESFH0okBOBuHXVb9Gs2rjaiCT4UqeC==0A@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--000e0ce03d52df899904b5532567
Content-Type: text/plain; charset=ISO-8859-1

Hi,

I'm sending this small patch for the marvell wifi driver.

Basically, in mwl_hal_bastream_alloc(), there is a sp = ... assignment that
could return NULL, then several derefencing of sp then finally, a NULL
check on sp before returning.

I simply moved the NULL check before the dereferences tries occurs.

Thank you!

--
Philippe Saint-Pierre

--000e0ce03d52df899904b5532567--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB96EKRBLN2cvavtESFH0okBOBuHXVb9Gs2rjaiCT4UqeC==0A>