From: Daniele Venzano <webvenza@libero.it>
To: "Randy.Dunlap" <rddunlap@osdl.org>
Cc: linux-kernel@vger.kernel.org, trivial@rustcorp.com.au
Subject: Re: [PATCH] sis900 fix (Was: [CHECKER] Resource leaks in driver shutdown functions)
Date: Tue, 4 May 2004 19:54:01 +0200 [thread overview]
Message-ID: <20040504175401.GA21789@gateway.milesteg.arr> (raw)
In-Reply-To: <20040504082849.56f16613.rddunlap@osdl.org>
[-- Attachment #1: Type: text/plain, Size: 903 bytes --]
On Tue, May 04, 2004 at 08:28:49AM -0700, Randy.Dunlap wrote:
> On Tue, 4 May 2004 10:43:26 +0200 Daniele Venzano wrote:
>
> | Thank you for the spotting, the sis900 dirver was really missing a call
> | to netif_device_detach in sis900_suspend.
> |
> | Attached is a trivial patch that fixes the issue.
>
> Just how trivial is the patch?
A one liner, against 2.6.5.
> -ENOATTACHMENT
Sorry, now is attached and is available at this url:
http://teg.homeunix.org/kernel_patches.html
The patch is tested, compiles and run. Could not test that very code
path because of other unrelated errors during suspend, that I was having
before this change.
But it's really a bug, there is a call to netif_device_attach inside
sis900_resume, but there is no corresponding netif_device_detach in
sis900_suspend.
Hope this clarifies.
--
-----------------------------
Daniele Venzano
Web: http://teg.homeunix.org
[-- Attachment #2: sis900-detach.diff --]
[-- Type: text/plain, Size: 354 bytes --]
--- linux-2.6.5/drivers/net/sis900.c 2004-04-05 17:33:30.000000000 +0200
+++ linux-2.6.5-exp/drivers/net/sis900.c 2004-05-04 10:15:06.000000000 +0200
@@ -2195,6 +2195,7 @@
return 0;
netif_stop_queue(net_dev);
+ netif_device_detach(net_dev);
/* Stop the chip's Tx and Rx Status Machine */
outl(RxDIS | TxDIS | inl(ioaddr + cr), ioaddr + cr);
next prev parent reply other threads:[~2004-05-04 17:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-03 18:46 [CHECKER] Resource leaks in driver shutdown functions Ken Ashcraft
2004-05-04 8:43 ` [PATCH] sis900 fix (Was: [CHECKER] Resource leaks in driver shutdown functions) Daniele Venzano
2004-05-04 15:28 ` Randy.Dunlap
2004-05-04 17:54 ` Daniele Venzano [this message]
2004-05-06 17:23 ` Rob Landley
2004-05-07 15:06 ` Daniele Venzano
2004-05-11 17:35 ` Rob Landley
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=20040504175401.GA21789@gateway.milesteg.arr \
--to=webvenza@libero.it \
--cc=linux-kernel@vger.kernel.org \
--cc=rddunlap@osdl.org \
--cc=trivial@rustcorp.com.au \
/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®