[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20101208.095920.229730656.davem@davemloft.net>
Date: Wed, 08 Dec 2010 09:59:20 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: maximlevitsky@...il.com, linux1394-devel@...ts.sourceforge.net,
stefanr@...6.in-berlin.de, netdev@...r.kernel.org,
kuznet@....inr.ac.ru, jmorris@...ei.org, kaber@...sh.net,
opurdila@...acom.com, stable@...nel.org
Subject: Re: [PATCH net-2.6] llc: fix a device refcount imbalance
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Sun, 05 Dec 2010 13:03:26 +0100
> [PATCH net-2.6] llc: fix a device refcount imbalance
>
> commit abf9d537fea225 (llc: add support for SO_BINDTODEVICE) added one
> refcount imbalance in llc_ui_bind(), because dev_getbyhwaddr() doesnt
> take a reference on device, while dev_get_by_index() does.
>
> Fix this using RCU locking. And since an RCU conversion will be done for
> 2.6.38 for dev_getbyhwaddr(), put the rcu_read_lock/unlock exactly at
> their final place.
>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
Applied and queued up for -stable.
--
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