From: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
To: "David S. Miller" <davem@redhat.com>
Cc: netdev@oss.sgi.com
Subject: Re: [PATCH] new module infrastructure for net_proto_family
Date: Sat, 19 Apr 2003 19:57:59 -0300 [thread overview]
Message-ID: <20030419225759.GB6251@conectiva.com.br> (raw)
In-Reply-To: <20030419.151706.86912986.davem@redhat.com>
Em Sat, Apr 19, 2003 at 03:17:06PM -0700, David S. Miller escreveu:
> From: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
> Date: Sat, 19 Apr 2003 13:14:57 -0300
>
> Have a look at this:
<SNIP>
> - if (sock->ops)
> + if (sock->ops) {
> sock->ops->release(sock);
> + module_put(net_families[sock->ops->family]->owner);
> + }
> Maybe you want to cache sock->ops->family before calling
> sock->ops->release, maybe nobody does it but it could be
> legal to NULL sock->ops during sock->ops->release()
> If anything this code should NULL'ify it because any reference to sock->ops
> after the release and module_put() is a BUG() that should be trapped.
Ok, agreed, new changeset in the making.
- Arnaldo
prev parent reply other threads:[~2003-04-19 22:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-19 16:14 [PATCH] new module infrastructure for net_proto_family Arnaldo Carvalho de Melo
2003-04-19 22:17 ` David S. Miller
2003-04-19 22:57 ` Arnaldo Carvalho de Melo [this message]
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=20030419225759.GB6251@conectiva.com.br \
--to=acme@conectiva.com.br \
--cc=davem@redhat.com \
--cc=netdev@oss.sgi.com \
/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;
as well as URLs for NNTP newsgroup(s).