summaryrefslogtreecommitdiff
path: root/net/wireless/core.h
diff options
context:
space:
mode:
authorWang Hai <wanghai38@huawei.com>2020-06-04 15:18:51 +0300
committerDavid S. Miller <davem@davemloft.net>2020-06-05 01:58:41 +0300
commit98749b7188affbf2900c2aab704a8853901d1139 (patch)
treee474af8cf3c514c0c1817907b6b10938e81e517b /net/wireless/core.h
parent7cdee28c4eeda8242c9fdbb02e315dbf35064afe (diff)
downloadlinux-98749b7188affbf2900c2aab704a8853901d1139.tar.xz
yam: fix possible memory leak in yam_init_driver
If register_netdev(dev) fails, free_netdev(dev) needs to be called, otherwise a memory leak will occur. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wang Hai <wanghai38@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/wireless/core.h')
0 files changed, 0 insertions, 0 deletions