]> 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)
commit66c89ce65dc34c02ee8402cc644280db9bb5aee4
treee56423a432760f4d71aadf3a194b0b522883cf8a
parenteba9ab786f65ac6f184d15ea2b8ce62dfddb6627
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: 9ba0723f7696 ("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