linux/drivers/net/wireless/ti
Christian Engelmayer 4c10416236 wlcore: fix usage of platform_device_add_data()
Coverity CID 986698 reports leakage of struct wlcore_platdev_data in the
probe functions of both the SPI/SDIO interfaces. The structure passed to
platform_device_add_data() is dynamically allocated and only freed in the
error paths, however, platform_device_add_data() adds a copy of the platform
specific data to the device. Move the temporary struct that is kmemdup'ed
to the stack. This issue exists since afb43e6d (wlcore: remove if_ops from
platform_data).

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2014-04-30 12:08:17 -04:00
..
wl12xx wlcore: wl18xx: allow CCK rates for AP mode 2014-02-13 15:20:16 -05:00
wl18xx wl18xx: align event mailbox with current fw 2014-04-14 14:31:42 -04:00
wl1251 Drivers:net:wireless:ti:wl1251: Fixed Sparse invalid assignment warning 2014-03-04 13:28:36 -05:00
wlcore wlcore: fix usage of platform_device_add_data() 2014-04-30 12:08:17 -04:00
Kconfig wlcore: move wl12xx_platform_data up and make it truly optional 2013-02-08 10:05:02 +02:00
Makefile wlcore: move wl12xx_platform_data up and make it truly optional 2013-02-08 10:05:02 +02:00
wilink_platform_data.c wl1251: split wl251 platform data to a separate structure 2014-02-28 14:08:26 -05:00