mirror of https://github.com/ipxe/ipxe.git
[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>pull/378/head
parent
f3f568e382
commit
065dce8d59
|
|
@ -39,6 +39,9 @@ static int ath5k_hw_eeprom_read(struct ath5k_hw *ah, u32 offset, u16 *data)
|
||||||
{
|
{
|
||||||
u32 status, timeout;
|
u32 status, timeout;
|
||||||
|
|
||||||
|
/* Avoid returning uninitialised data on error */
|
||||||
|
*data = 0xffff;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize EEPROM access
|
* Initialize EEPROM access
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue