mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 16:25:34 +00:00
![]() Smatch complains that there is a double free in probe:
drivers/net/wireless/microchip/wilc1000/spi.c:186 wilc_bus_probe() error: double free of 'spi_priv'
drivers/net/wireless/microchip/wilc1000/sdio.c:163 wilc_sdio_probe() error: double free of 'sdio_priv'
The problem is that wilc_netdev_cleanup() function frees "wilc->bus_data".
That's confusing and a layering violation. Leave the frees in probe(),
delete the free in wilc_netdev_cleanup(), and add some new frees to the
remove() functions.
Fixes:
|
||
---|---|---|
.. | ||
cfg80211.c | ||
cfg80211.h | ||
fw.h | ||
hif.c | ||
hif.h | ||
Kconfig | ||
Makefile | ||
mon.c | ||
netdev.c | ||
netdev.h | ||
sdio.c | ||
spi.c | ||
wlan.c | ||
wlan.h | ||
wlan_cfg.c | ||
wlan_cfg.h | ||
wlan_if.h |