The wilc_wfi_init_mon_int() forgets to clean up resource when
register_netdevice() failed. Add the missed call to fix it.
And the return value of netdev_priv can't be NULL, so remove
the unnecessary error handling.
Fixes:
|
||
---|---|---|
.. | ||
cfg80211.c | ||
cfg80211.h | ||
fw.h | ||
hif.c | ||
hif.h | ||
Kconfig | ||
Makefile | ||
mon.c | ||
netdev.c | ||
netdev.h | ||
sdio.c | ||
spi.c | ||
wlan_cfg.c | ||
wlan_cfg.h | ||
wlan_if.h | ||
wlan.c | ||
wlan.h |