projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c51e7d
)
ath9k: consider return code on
author
Eduardo Abinader
<
[email protected]
>
Thu, 18 Aug 2016 13:52:09 +0000
(16:52 +0300)
committer
Kalle Valo
<
[email protected]
>
Fri, 19 Aug 2016 10:07:06 +0000
(13:07 +0300)
just to comply with current ath9k_hw_nvram_read to return value, hence
behaving reacting accordingly.
Signed-off-by: Eduardo Abinader <
[email protected]
>
Signed-off-by: Kalle Valo <
[email protected]
>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
index 5bd2cbaf582de4a93f59fc4e13ed10216c582b53..08607d7fdb56adc865b4fc70564abca86a49488d 100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
+++ b/
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
@@
-3252,7
+3252,8
@@
static int ar9300_eeprom_restore_flash(struct ath_hw *ah, u8 *mptr,
int i;
for (i = 0; i < mdata_size / 2; i++, data++)
- ath9k_hw_nvram_read(ah, i, data);
+ if (!ath9k_hw_nvram_read(ah, i, data))
+ return -EIO;
return 0;
}
@@
-3282,7
+3283,8
@@
static int ar9300_eeprom_restore_internal(struct ath_hw *ah,
if (ath9k_hw_use_flash(ah)) {
u8 txrx;
- ar9300_eeprom_restore_flash(ah, mptr, mdata_size);
+ if (ar9300_eeprom_restore_flash(ah, mptr, mdata_size))
+ return -EIO;
/* check if eeprom contains valid data */
eep = (struct ar9300_eeprom *) mptr;