OSDN Git Service

Replace rtw_mfree with kfree
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 2 Dec 2013 21:14:49 +0000 (22:14 +0100)
committerLarry Finger <Larry.Finger@lwfinger.net>
Mon, 2 Dec 2013 22:00:20 +0000 (16:00 -0600)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
os_dep/os_intfs.c

index 5ddff35..63a5d24 100644 (file)
@@ -2410,7 +2410,7 @@ void rtw_ndev_destructor(struct net_device *ndev)
 
 #ifdef CONFIG_IOCTL_CFG80211
        if (ndev->ieee80211_ptr)
-               rtw_mfree((u8 *)ndev->ieee80211_ptr, sizeof(struct wireless_dev));
+               kfree(ndev->ieee80211_ptr);
 #endif
        free_netdev(ndev);
 }