From: Gabor Juhos Date: Mon, 10 Dec 2012 23:21:02 +0000 (+0000) Subject: mac80211: fix possible NULL pointer dereference in ath9k X-Git-Tag: reboot~12017 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=51f59a4f53edfbf802b263260e50f736d7a70630;p=openwrt%2Fstaging%2Fchunkeey.git mac80211: fix possible NULL pointer dereference in ath9k Signed-off-by: Gabor Juhos SVN-Revision: 34624 --- diff --git a/package/mac80211/patches/305-pending-ath9k-allow-to-load-EEPROM-content-via-firmware-API.patch b/package/mac80211/patches/305-pending-ath9k-allow-to-load-EEPROM-content-via-firmware-API.patch index 78efdc4e37..d710d099ef 100644 --- a/package/mac80211/patches/305-pending-ath9k-allow-to-load-EEPROM-content-via-firmware-API.patch +++ b/package/mac80211/patches/305-pending-ath9k-allow-to-load-EEPROM-content-via-firmware-API.patch @@ -144,7 +144,7 @@ Signed-off-by: Gabor Juhos 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;