]> git.karo-electronics.de Git - linux-beck.git/commit
p54: fix a NULL pointer dereference bug
authorFelix Fietkau <nbd@openwrt.org>
Sun, 27 Feb 2011 21:19:22 +0000 (22:19 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Feb 2011 19:06:54 +0000 (14:06 -0500)
commita5a7103fe18eb4312bd89c9f136fb850af58faf4
tree2242178941a40c30adcc13705bf990249bb9093b
parentc2a7dca0ce0e6ceb13f9030ff8e9731eaa14cc02
p54: fix a NULL pointer dereference bug

If the RSSI calibration table was not found or not parsed properly,
priv->rssi_db will be NULL, p54_rssi_find needs to be able to deal
with that.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Acked-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/eeprom.c