]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: rtl8723bs: remove re-positioned call to kfree in os_dep/ioctl_cfg80211.c
authorIan W MORRISON <ianwmorrison@gmail.com>
Mon, 8 May 2017 13:40:35 +0000 (23:40 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 10:25:12 +0000 (12:25 +0200)
A re-positioned call to kfree() in
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
causes a segmentation error. This patch removed the kfree() call.

Fixes 6557ddfec348 ("staging: rtl8723bs: Fix various errors in os_dep/ioctl_cfg80211.c")
Signed-off-by: Ian W Morrison <ianwmorrison@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c

index 5e7a61f24f8dc38daea774986696ec6cc1d9ce9d..36c3189fc4b7f6f981ca683dd53267a5f9e541c3 100644 (file)
@@ -3531,7 +3531,6 @@ int rtw_wdev_alloc(struct adapter *padapter, struct device *dev)
                pwdev_priv->power_mgmt = true;
        else
                pwdev_priv->power_mgmt = false;
-       kfree((u8 *)wdev);
 
        return ret;