]> git.baikalelectronics.ru Git - kernel.git/commit
qtnfmac: fix resource leaks on unsupported iftype error return path
authorColin Ian King <colin.king@canonical.com>
Fri, 25 Sep 2020 13:22:24 +0000 (14:22 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 29 Sep 2020 08:23:47 +0000 (11:23 +0300)
commit58d32c307eebe221e42f40d1cd383442f922a203
treedd8b37b837acb1043815c205dca869f9e20c18d6
parentc85c2895d6d66f0565bc691d857989561675062d
qtnfmac: fix resource leaks on unsupported iftype error return path

Currently if an unsupported iftype is detected the error return path
does not free the cmd_skb leading to a resource leak. Fix this by
free'ing cmd_skb.

Addresses-Coverity: ("Resource leak")
Fixes: d5d09377313f ("qtnfmac: prepare for AP_VLAN interface type support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200925132224.21638-1-colin.king@canonical.com
drivers/net/wireless/quantenna/qtnfmac/commands.c