]> git.baikalelectronics.ru Git - kernel.git/commit
libertas: fix potential NULL-pointer dereference
authorSven Neumann <s.neumann@raumfeld.com>
Thu, 9 Dec 2010 08:38:36 +0000 (09:38 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 13 Dec 2010 19:53:46 +0000 (14:53 -0500)
commitf1658598f13e62304621e451d254d957a2604126
tree959097a4adcd191417e2f59b07cb404edc3b1854
parent5c6b5d6c8500f768ea71a731946f17472c571b19
libertas: fix potential NULL-pointer dereference

The code wants to check if there's a channel and it is not disabled,
but it used to check if channel is not NULL and accessed the channel
struct if this check failed.

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cfg.c