mirror of https://gitee.com/openkylin/linux.git
4c10416236
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
|
||
---|---|---|
.. | ||
wl12xx | ||
wl18xx | ||
wl1251 | ||
wlcore | ||
Kconfig | ||
Makefile | ||
wilink_platform_data.c |