diff options
author | Colin Ian King <[email protected]> | 2017-06-02 16:40:45 +0100 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2017-06-13 10:01:36 +0300 |
commit | bc0384eedb66555f6b4662102675f9bf4a3d12b7 (patch) | |
tree | e53f5ea99214ab22cbabe8cc6023428cd023f2da /lib/mpi/mpi-internal.h | |
parent | 292c333300ec2a412902fa59aad5b365024384a5 (diff) |
qtnfmac: check band before allocating cmd_skb to avoid resource leak
The current code allocates cmd_skb and then will leak this if band->band
is an illegal value. It is simpler to sanity check the band first before
allocating cmd_skb so that we don't have to free cmd_skb if an invalid
band occurs.
Detected by CoverityScan, CID#1437561 ("Resource Leak")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Igor Mitsyanko <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions