Skip to content
Commit 48f3b9e9 authored by Wei Yongjun's avatar Wei Yongjun Committed by Johannes Berg
Browse files

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: 09b4a4fa ("mac80211: introduce capability flags for VHT EXT NSS support")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent e4d4216e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment