From: Maxim Mikityanskiy Date: Tue, 13 Nov 2012 17:28:12 +0000 (+0200) Subject: staging: rtl8187se: Fixed oops when rmmoding X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=17e81bd3d3afe8b1791d96c34e3f2c5b3b7ed1df;p=linux-beck.git staging: rtl8187se: Fixed oops when rmmoding Don't remove procfs entry that is never created Signed-off-by: Maxim Mikityanskiy Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8187se/r8180_core.c b/drivers/staging/rtl8187se/r8180_core.c index 6ec3a93803fa..8139f266d72e 100644 --- a/drivers/staging/rtl8187se/r8180_core.c +++ b/drivers/staging/rtl8187se/r8180_core.c @@ -323,7 +323,6 @@ void rtl8180_proc_remove_one(struct net_device *dev) remove_proc_entry("stats-tx", priv->dir_dev); remove_proc_entry("stats-rx", priv->dir_dev); remove_proc_entry("registers", priv->dir_dev); - remove_proc_entry(dev->name, rtl8180_proc); priv->dir_dev = NULL; } }