[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20091019.205948.193706797.davem@davemloft.net>
Date: Mon, 19 Oct 2009 20:59:48 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] net: Fix IP_MULTICAST_IF
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Mon, 19 Oct 2009 18:41:58 +0200
> ipv4/ipv6 setsockopt(IP_MULTICAST_IF) have dubious __dev_get_by_index() calls.
Dubious, how so?
Yes, I know RTNL/dev_base_lock, but it's not using what it gets
back at all.
It's testing existence, a boolean, it doesn't dereference the
'dev' it gets back at all.
This code is intentional and perfectly fine.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists