From 5a21cce8cdf130dd018d9b2aa9ee48c8f3023dbd Mon Sep 17 00:00:00 2001 From: Christian B Date: Mon, 6 Aug 2018 19:51:45 +0200 Subject: [PATCH] Fix another segfault * Removed for now, not used anyway since the virtual interface support isn't working. --- os_dep/linux/os_intfs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index 1bb7292..cb97b85 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -1352,7 +1352,6 @@ static u8 is_rtw_ndev(struct net_device *ndev) static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state, void *ptr) { struct net_device *ndev; - _adapter *adapter = rtw_netdev_priv(ndev); if (ptr == NULL) return NOTIFY_DONE; @@ -1374,8 +1373,6 @@ static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state switch (state) { case NETDEV_CHANGENAME: rtw_adapter_proc_replace(ndev); - strncpy(adapter->old_ifname, ndev->name, IFNAMSIZ); - adapter->old_ifname[IFNAMSIZ-1] = 0; break; }