aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorChristian Engelmayer <cengelma@gmx.at>2014-05-07 21:36:48 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-24 01:57:14 +0900
commit55d4f6cc4c922123cf8eb7b428191a0c33f08704 (patch)
tree7238f444787986920136c1a5364c7db82617d179 /scripts
parentstaging: comedi: removing warnings reported by checkpatch tool on cb_pcimdas.c (diff)
staging: rtl8712: fix potential leak in r871x_wx_set_enc_ext()
Fix a potential leak in the error path of r871x_wx_set_enc_ext(). In case the requested algorithm is not supported by the driver, the function returns without freeing the already allocated 'param' struct. Move the input verification to the beginning of the function so that the direct return is safe. Detected by Coverity - CID 144373. Signed-off-by: Christian Engelmayer <cengelma@gmx.at> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions