diff options
author | Christian Engelmayer | 2014-04-09 21:28:54 +0200 |
---|---|---|
committer | John W. Linville | 2014-04-14 20:31:41 +0200 |
commit | 98ddcbe03366c19b6da9b75a00f9c8d0a7c2dc6d (patch) | |
tree | 0efecf018f2d0313d2a2adb665defdc008c2c03a /block/partition-generic.c | |
parent | rsi: Add missing initialization of ii (diff) | |
download | kernel-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 'block/partition-generic.c')
0 files changed, 0 insertions, 0 deletions