mirror of https://gitee.com/openkylin/linux.git
98ddcbe033
Fix a potential memory leak in function rsi_set_channel() that is used to program channel changes. The channel check block for the frequency bands directly exits the function in case of an error, thus leaving an already allocated skb unreferenced. Move the checks above allocating the skb. Detected by Coverity: CID 1195576. Signed-off-by: Christian Engelmayer <cengelma@gmx.at> Signed-off-by: John W. Linville <linville@tuxdriver.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
rsi_91x_core.c | ||
rsi_91x_debugfs.c | ||
rsi_91x_mac80211.c | ||
rsi_91x_main.c | ||
rsi_91x_mgmt.c | ||
rsi_91x_pkt.c | ||
rsi_91x_sdio.c | ||
rsi_91x_sdio_ops.c | ||
rsi_91x_usb.c | ||
rsi_91x_usb_ops.c | ||
rsi_boot_params.h | ||
rsi_common.h | ||
rsi_debugfs.h | ||
rsi_main.h | ||
rsi_mgmt.h | ||
rsi_sdio.h | ||
rsi_usb.h |