mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniele Venzano <webvenza@libero.it>
To: Ken Ashcraft <ken@coverity.com>
Cc: linux-kernel@vger.kernel.org, trivial@rustcorp.com.au
Subject: [PATCH] sis900 fix (Was: [CHECKER] Resource leaks in driver shutdown functions)
Date: Tue, 4 May 2004 10:43:26 +0200	[thread overview]
Message-ID: <20040504084326.GA11133@gateway.milesteg.arr> (raw)
In-Reply-To: <3580.171.64.70.92.1083609961.spork@webmail.coverity.com>

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.

The sis900 driver is currently unmaintained (the MAINTAINERS address
bounces), but I'm willing to take the work, since I know somewhat the
code and I wrote the power management functions.

I no one stands up, I'll send a patch to MAINTAINERS later on.

Bye.

On Mon, May 03, 2004 at 11:46:01AM -0700, Ken Ashcraft wrote:
> The resource allocation/freeing functions in question below are:
> netif_start_queue/netif_stop_queue
> 
> If you are CC'd on this email, it is because I think you are the
> maintainer for some of the code below.  Search for your email address
> below to find it.
> 
> 1	|	/drivers/net/sis900.c
> ---------------------------------------------------------
...
> [BUG] webvenza@libero.it
> /home/kash/linux/2.6.3/linux-2.6.3/drivers/net/sis900.c:2191:sis900_suspend:ERROR:INTERFACE_A_B:
> Not calling netif_device_detach. See sis900_resume:2229
> [COUNTER=netif_device_attach-netif_device_detach] [fit=4] [fit_fn=2]
> [fn_ex=0] [fn_counter=1] [ex=18] [counter=2] [z = 1.11803398874989] [fn-z
> = -2]
> 	pci_set_drvdata(pci_dev, NULL);
> }
> 
> #ifdef CONFIG_PM
> 
> 
> Error --->
> static int sis900_suspend(struct pci_dev *pci_dev, u32 state)
> {
> 	struct net_device *net_dev = pci_get_drvdata(pci_dev);
> 	struct sis900_private *sis_priv = net_dev->priv;

-- 
-----------------------------
Daniele Venzano
Web: http://teg.homeunix.org


  reply	other threads:[~2004-05-04  8:43 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 ` Daniele Venzano [this message]
2004-05-04 15:28   ` [PATCH] sis900 fix (Was: [CHECKER] Resource leaks in driver shutdown functions) Randy.Dunlap
2004-05-04 17:54     ` Daniele Venzano
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=20040504084326.GA11133@gateway.milesteg.arr \
    --to=webvenza@libero.it \
    --cc=ken@coverity.com \
    --cc=linux-kernel@vger.kernel.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®