p54spi: fix potential null deref in p54spi.c
commitbfa99bfdda1ce8a60f1f0fba7a04162a66d4ecfa
authorDan Carpenter <error27@gmail.com>
Sun, 19 Jul 2009 19:26:13 +0000 (19 21:26 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 21 Jul 2009 19:59:48 +0000 (21 15:59 -0400)
tree57408c184ab84083a634475bd0e002f692d777f0
parented5c8ef3bb2de277b7885072e0e981c41a022be5
p54spi: fix potential null deref in p54spi.c

Fix a potential NULL dereference bug during
error handling in p54spi_probe.

This bug was discovered by smatch:
(http://repo.or.cz/w/smatch.git).

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/p54spi.c