summaryrefslogtreecommitdiffstats
path: root/scripts/checksyscalls.sh
diff options
context:
space:
mode:
authorChristian Engelmayer2014-04-09 21:28:54 +0200
committerJohn W. Linville2014-04-14 20:31:41 +0200
commit98ddcbe03366c19b6da9b75a00f9c8d0a7c2dc6d (patch)
tree0efecf018f2d0313d2a2adb665defdc008c2c03a /scripts/checksyscalls.sh
parentrsi: Add missing initialization of ii (diff)
downloadkernel-qcow2-linux-98ddcbe03366c19b6da9b75a00f9c8d0a7c2dc6d.tar.gz
kernel-qcow2-linux-98ddcbe03366c19b6da9b75a00f9c8d0a7c2dc6d.tar.xz
kernel-qcow2-linux-98ddcbe03366c19b6da9b75a00f9c8d0a7c2dc6d.zip
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>
Diffstat (limited to 'scripts/checksyscalls.sh')
0 files changed, 0 insertions, 0 deletions