mirror of
https://github.com/ipxe/ipxe
synced 2026-02-12 21:29:39 +03:00
[ath5k] Avoid returning uninitialised data on EEPROM read errors
Originally-implemented-by: Bernhard M. Wiedemann <bwiedemann@suse.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -39,6 +39,9 @@ static int ath5k_hw_eeprom_read(struct ath5k_hw *ah, u32 offset, u16 *data)
|
||||
{
|
||||
u32 status, timeout;
|
||||
|
||||
/* Avoid returning uninitialised data on error */
|
||||
*data = 0xffff;
|
||||
|
||||
/*
|
||||
* Initialize EEPROM access
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user