From: YueHaibing Date: Sat, 29 Aug 2020 12:41:14 +0000 (+0800) Subject: staging: rtl8723bs: os_dep: return errcode in cfg80211_rtw_leave_ibss() X-Git-Tag: v5.10.7~1420^2~147 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=62d2e63c3ef6622dee42b2ef5f2a4690125af12c;p=platform%2Fkernel%2Flinux-rpi.git staging: rtl8723bs: os_dep: return errcode in cfg80211_rtw_leave_ibss() We should return error to caller in cfg80211_rtw_leave_ibss(). Signed-off-by: YueHaibing Link: https://lore.kernel.org/r/20200829124114.5792-1-yuehaibing@huawei.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c index 2fb80b6..ea3ae3d 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c @@ -2021,7 +2021,7 @@ static int cfg80211_rtw_leave_ibss(struct wiphy *wiphy, struct net_device *ndev) } leave_ibss: - return 0; + return ret; } static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,