[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1378996396.24408.8.camel@edumazet-glaptop>
Date: Thu, 12 Sep 2013 07:33:16 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Hong zhi guo <honkiko@...il.com>
Cc: netdev@...r.kernel.org, David Miller <davem@...emloft.net>,
zhiguohong@...cent.com
Subject: Re: [PATCH net-next] fix NULL pointer dereference in br_handle_frame
On Thu, 2013-09-12 at 22:24 +0800, Hong zhi guo wrote:
> You mean IFF_BRIDGE_PORT should be only for admin/control path, but
> not for data path?
By definition, br_handle_frame() should be called only when device is a
bridge port.
After the call to synchronize_net() included in
netdev_rx_handler_unregister(), you have guarantee br_handle_frame()
wont be called.
Therefore, testing IFF_BRIDGE_PORT in br_handle_frame() is redundant.
--
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