Skip to content
Snippets Groups Projects
Commit 51f59a4f authored by Gabor Juhos's avatar Gabor Juhos
Browse files

mac80211: fix possible NULL pointer dereference in ath9k


Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34624
parent aa2dc106
No related branches found
No related tags found
No related merge requests found
...@@ -144,7 +144,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> ...@@ -144,7 +144,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
ath_read_cachesize(common, &csz); ath_read_cachesize(common, &csz);
common->cachelsz = csz << 2; /* convert to bytes */ common->cachelsz = csz << 2; /* convert to bytes */
+ if (pdata->eeprom_name) { + if (pdata && pdata->eeprom_name) {
+ ret = ath9k_eeprom_request(sc, pdata->eeprom_name); + ret = ath9k_eeprom_request(sc, pdata->eeprom_name);
+ if (ret) + if (ret)
+ goto err_eeprom; + goto err_eeprom;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment