]> git.baikalelectronics.ru Git - kernel.git/commit
virt_wifi: fix error return code in virt_wifi_newlink()
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 18 Jan 2019 07:29:52 +0000 (07:29 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Sat, 19 Jan 2019 08:12:16 +0000 (09:12 +0100)
commit5ade005ef20fa449465583d4d65b6f6baea37ff6
treee56423a432760f4d71aadf3a194b0b522883cf8a
parent757f915ae70aa6873ca0c67848faea0596ab49b7
virt_wifi: fix error return code in virt_wifi_newlink()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 4a7face1a5ad ("mac80211-next: rtnetlink wifi simulation device")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/virt_wifi.c