mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-03 21:09:42 +02:00
mac80211: fix possible NULL pointer dereference in ath9k
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34624 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
fa628f412c
commit
23d6020d01
@ -144,7 +144,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
||||
ath_read_cachesize(common, &csz);
|
||||
common->cachelsz = csz << 2; /* convert to bytes */
|
||||
|
||||
+ if (pdata->eeprom_name) {
|
||||
+ if (pdata && pdata->eeprom_name) {
|
||||
+ ret = ath9k_eeprom_request(sc, pdata->eeprom_name);
|
||||
+ if (ret)
|
||||
+ goto err_eeprom;
|
||||
|
Loading…
Reference in New Issue
Block a user