Re: [v2] hostap: avoid uninitialized variable use in hfa384x_get_rid

2016-02-06 Thread Kalle Valo
> The driver reads a value from hfa384x_from_bap(), which may fail, > and then assigns the value to a local variable. gcc detects that > in in the failure case, the 'rlen' variable now contains > uninitialized data: > > In file included from >

[PATCH v2] hostap: avoid uninitialized variable use in hfa384x_get_rid

2016-01-28 Thread Arnd Bergmann
The driver reads a value from hfa384x_from_bap(), which may fail, and then assigns the value to a local variable. gcc detects that in in the failure case, the 'rlen' variable now contains uninitialized data: In file included from ../drivers/net/wireless/intersil/hostap/hostap_pci.c:220:0: