From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] ax25: Add missing dev_put in ax25_setsockopt Date: Mon, 28 Sep 2009 12:26:38 -0700 (PDT) Message-ID: <20090928.122638.52076650.davem@davemloft.net> References: <4ABA9058.3010605@free.fr> <20090928071211.GA8658@ff.dom.local> <20090928125313.GA14250@linux-mips.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: jarkao2@gmail.com, f6bvp@free.fr, bernard.pidoux@upmc.fr, netdev@vger.kernel.org, linux-hams@vger.kernel.org To: ralf@linux-mips.org Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:37552 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751688AbZI1T0T (ORCPT ); Mon, 28 Sep 2009 15:26:19 -0400 In-Reply-To: <20090928125313.GA14250@linux-mips.org> Sender: netdev-owner@vger.kernel.org List-ID: From: Ralf Baechle Date: Mon, 28 Sep 2009 13:53:13 +0100 > ax25_setsockopt SO_BINDTODEVICE is missing a dev_put call in case of > success. Re-order code to fix this bug. While at it also reformat two > lines of code to comply with the Linux coding style. > > Initial patch by Jarek Poplawski . > > Reported-by: Bernard Pidoux F6BVP > Signed-off-by: Ralf Baechle > > --- > Counter-proposal. Reordering all the code avoids the need for a 2nd dev_put > and is more readable. Looks good to me, applied.