linux/drivers/net/wireless/rsi
Christian Engelmayer 98ddcbe033 rsi: Fix a potential memory leak in rsi_set_channel()
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>
2014-04-14 14:31:41 -04:00
..
Kconfig
Makefile
rsi_91x_core.c rsi: Add missing initialization of ii 2014-04-14 14:31:41 -04:00
rsi_91x_debugfs.c rsi: Potential null pointer derefernce issue fixed. 2014-04-09 13:55:53 -04:00
rsi_91x_mac80211.c
rsi_91x_main.c rsi: Add pr_fmt,__printf, fix format & arg mismatch 2014-03-19 15:15:47 -04:00
rsi_91x_mgmt.c rsi: Fix a potential memory leak in rsi_set_channel() 2014-04-14 14:31:41 -04:00
rsi_91x_pkt.c
rsi_91x_sdio.c rsi: Fixed issue relating to variable de-referenced before check 'adapter' 2014-04-09 13:55:53 -04:00
rsi_91x_sdio_ops.c rsi: Fixed issue relating to return value. 2014-04-09 13:55:54 -04:00
rsi_91x_usb.c rsi: Fixed issue relating to doing dma on stack error. 2014-04-09 13:55:54 -04:00
rsi_91x_usb_ops.c
rsi_boot_params.h
rsi_common.h
rsi_debugfs.h
rsi_main.h rsi: Add pr_fmt,__printf, fix format & arg mismatch 2014-03-19 15:15:47 -04:00
rsi_mgmt.h
rsi_sdio.h
rsi_usb.h