mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: davej@redhat.com
To: linux-kernel@vger.kernel.org
Cc: torvalds@osdl.org, akpm@osdl.org, jgarzik@pobox.com
Subject: [3C509] Fix sysfs leak.
Date: Mon, 15 Mar 2004 21:47:00 GMT	[thread overview]
Message-ID: <200403152147.i2FLl09s002942@delerium.codemonkey.org.uk> (raw)

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

             reply	other threads:[~2004-03-15 21:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-15 21:47 davej [this message]
2004-03-16 10:56 ` Marc Zyngier
2004-03-16 13:46   ` Dave Jones
2004-03-16 14:09     ` Marc Zyngier
2004-03-16 14:29       ` Dave Jones
2004-03-16 15:05         ` Marc Zyngier
2004-03-16 15:30           ` Dave Jones
2004-03-16 16:05             ` Marc Zyngier
2004-03-16 16:16               ` Dave Jones
2004-03-16 15:58         ` Richard B. Johnson
2004-03-19 16:36           ` Vojtech Pavlik
2004-03-16 16:06     ` Jeff Garzik
2004-03-16 16:13       ` Dave Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200403152147.i2FLl09s002942@delerium.codemonkey.org.uk \
    --to=davej@redhat.com \
    --cc=akpm@osdl.org \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®