From 51f59a4f53edfbf802b263260e50f736d7a70630 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Mon, 10 Dec 2012 23:21:02 +0000 Subject: [PATCH] mac80211: fix possible NULL pointer dereference in ath9k Signed-off-by: Gabor Juhos SVN-Revision: 34624 --- ...ng-ath9k-allow-to-load-EEPROM-content-via-firmware-API.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2