lkml.org 
[lkml]   [2004]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[3C509] Fix sysfs leak.
If the driver fails to load, we leave a 3c509 eisa directory
in sysfs.

Dave

--- linux-2.6.4/drivers/net/3c509.c~ 2004-03-15 21:23:55.000000000 +0000
+++ linux-2.6.4/drivers/net/3c509.c 2004-03-15 21:24:30.000000000 +0000
@@ -1657,7 +1655,7 @@
}

#ifdef CONFIG_EISA
- if (eisa_driver_register (&el3_eisa_driver) < 0) {
+ if (eisa_driver_register (&el3_eisa_driver) <= 0) {
eisa_driver_unregister (&el3_eisa_driver);
}
#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:01    [from the cache]
©2003-2011 Jasper Spaans