Commit 63f6982
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: 805b28c ("qtnfmac: prepare for AP_VLAN interface type support")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent fada093 commit 63f6982
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
| 872 | + | |
872 | 873 | | |
873 | 874 | | |
874 | 875 | | |
| |||
1924 | 1925 | | |
1925 | 1926 | | |
1926 | 1927 | | |
| 1928 | + | |
1927 | 1929 | | |
1928 | 1930 | | |
1929 | 1931 | | |
| |||
0 commit comments