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)
commitf9d672f1c2ca36b788511bbd773d650c744e109a
treee56423a432760f4d71aadf3a194b0b522883cf8a
parenta0dc02039a2ee54fb4ae400e0b755ed30e73e58c
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: c7cdba31ed8b ("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