nl80211: fix possible unitialized memory access in nl80211_get_hardware_id()
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
813f61e48b
commit
eeaae3d011
1 changed files with 1 additions and 1 deletions
|
@ -2698,7 +2698,7 @@ static int nl80211_get_mbssid_support(const char *ifname, int *buf)
|
|||
|
||||
static int nl80211_get_hardware_id(const char *ifname, char *buf)
|
||||
{
|
||||
int rv;
|
||||
int rv = -1;
|
||||
char *res;
|
||||
|
||||
/* Got a radioX pseudo interface, find some interface on it or create one */
|
||||
|
|
Loading…
Add table
Reference in a new issue