Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030579AbXBUOXq (ORCPT ); Wed, 21 Feb 2007 09:23:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030576AbXBUOXn (ORCPT ); Wed, 21 Feb 2007 09:23:43 -0500 Received: from mail.screens.ru ([213.234.233.54]:38630 "EHLO mail.screens.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030353AbXBUOXm (ORCPT ); Wed, 21 Feb 2007 09:23:42 -0500 Date: Wed, 21 Feb 2007 17:23:42 +0300 From: Oleg Nesterov To: Jarek Poplawski Cc: Stephen Hemminger , Andrew Morton , "David S. Miller" , David Howells , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net/bridge/br_if.c: fix possible use-after-free in port_carrier_check() Message-ID: <20070221142342.GB134@tv-sign.ru> References: <20070220221941.GA707@tv-sign.ru> <20070220162434.72d3ad7b@freekitty> <20070221082345.GB1662@ff.dom.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070221082345.GB1662@ff.dom.local> User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 712 Lines: 25 On 02/21, Jarek Poplawski wrote: > > > On Wed, 21 Feb 2007 01:19:41 +0300 > > Oleg Nesterov wrote: > > > > > + p = container_of(work, struct net_bridge_port, carrier_check.work); > > > > > > rtnl_lock(); > > > - p = dev->br_port; > > > - if (!p) > > > - goto done; > > > br = p->br; > > It doesn't matter very much but I think this would look > better after the first if check. OK. I can re-send if this patch is otherwise correct. Oleg. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/