From: Muli Ben-Yehuda <mulix@mulix.org>
To: chas@cmf.nrl.navy.mil
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [ATM]: refcount atm sockets
Date: Fri, 16 Jan 2004 14:53:18 +0200 [thread overview]
Message-ID: <20040116125317.GD734@actcom.co.il> (raw)
In-Reply-To: <200401161217.i0GCHNjW019602@hera.kernel.org>
[-- Attachment #1: Type: text/plain, Size: 907 bytes --]
Howdy, in this patchset for 2.4:
On Fri, Jan 16, 2004 at 10:02:24AM +0000, Linux Kernel Mailing List wrote:
> ChangeSet 1.1405.1.4, 2004/01/16 02:02:24-08:00, chas@cmf.nrl.navy.mil
>
> [ATM]: refcount atm sockets
> diff -Nru a/net/atm/common.c b/net/atm/common.c
> --- a/net/atm/common.c Fri Jan 16 04:17:24 2004
> +++ b/net/atm/common.c Fri Jan 16 04:17:24 2004
> @@ -242,6 +242,8 @@
> printk(KERN_DEBUG "vcc_sock_destruct: wmem leakage (%d bytes) detected.\n", atomic_read(&sk->wmem_alloc));
>
> kfree(sk->protinfo.af_atm);
> +
> + MOD_DEC_USE_COUNT;
This has the usual wellknown races involved with handling the module's
refcount from within the moodule. Is there a way to push the
refcounting to the caller?
Cheers,
Muli
--
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/
"the nucleus of linux oscillates my world" - gccbot@#offtopic
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next parent reply other threads:[~2004-01-16 12:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200401161217.i0GCHNjW019602@hera.kernel.org>
2004-01-16 12:53 ` Muli Ben-Yehuda [this message]
2004-01-16 17:41 ` [ATM]: refcount atm sockets chas williams
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=20040116125317.GD734@actcom.co.il \
--to=mulix@mulix.org \
--cc=chas@cmf.nrl.navy.mil \
--cc=linux-kernel@vger.kernel.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