]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mac80211: fix error handling in ieee80211_register_hw()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 26 Sep 2018 12:17:17 +0000 (12:17 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 2 Oct 2018 07:56:29 +0000 (09:56 +0200)
commit48f3b9e989725127e0edf1cc2f2e169094d03a43
tree8aac0ebb6b97c01d933449df3e398bc27d798013
parente4d4216e91ea31049ba0cde0799ece244410a9f7
mac80211: fix error handling in ieee80211_register_hw()

Fix to return a negative error code -ENOMEM from the kmemdup
error handling case instead of 0.

Fixes: 09b4a4faf9d0 ("mac80211: introduce capability flags for VHT EXT NSS support")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/main.c