summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy/4965-mac.c
diff options
context:
space:
mode:
authorChristian Engelmayer <cengelma@gmx.at>2014-04-24 22:35:56 +0200
committerJohn W. Linville <linville@tuxdriver.com>2014-04-30 12:08:17 -0400
commit4c10416236732f205ed1670064da46306d66a2ce (patch)
treec88ff4f45b1b32e0b84c148602719d001c5c0c53 /drivers/net/wireless/iwlegacy/4965-mac.c
parent329d6e299f92a591acb3a80f6d597a5f9dce7e6d (diff)
downloadop-kernel-dev-4c10416236732f205ed1670064da46306d66a2ce.zip
op-kernel-dev-4c10416236732f205ed1670064da46306d66a2ce.tar.gz
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>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/4965-mac.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud