Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751648AbWAIXvl (ORCPT ); Mon, 9 Jan 2006 18:51:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751643AbWAIXvl (ORCPT ); Mon, 9 Jan 2006 18:51:41 -0500 Received: from stinky.trash.net ([213.144.137.162]:53175 "EHLO stinky.trash.net") by vger.kernel.org with ESMTP id S1750736AbWAIXvk (ORCPT ); Mon, 9 Jan 2006 18:51:40 -0500 Message-ID: <43C2F6DC.7040602@trash.net> Date: Tue, 10 Jan 2006 00:50:52 +0100 From: Patrick McHardy User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kirill Korotaev , "David S. Miller" CC: Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, Dmitry Mishin , Stanislav Protassov , Kernel Netdev Mailing List Subject: Re: [PATCH] netlink oops fix due to incorrect error code References: <43C27662.2030400@openvz.org> In-Reply-To: <43C27662.2030400@openvz.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1104 Lines: 32 Kirill Korotaev wrote: > Fixed oops after failed netlink socket creation. > Wrong parathenses in if() statement caused err to be 1, > instead of negative value. > Trivial fix, not trivial to find though. > > Signed-Off-By: Dmitry Mishin > Signed-Off-By: Kirill Korotaev Good catch. Dave, please apply. > > ------------------------------------------------------------------------ > > --- ./net/netlink/af_netlink.c.nlfix 2006-01-06 18:37:28.000000000 +0300 > +++ ./net/netlink/af_netlink.c 2006-01-09 16:40:49.000000000 +0300 > @@ -416,7 +416,7 @@ static int netlink_create(struct socket > groups = nl_table[protocol].groups; > netlink_unlock_table(); > > - if ((err = __netlink_create(sock, protocol) < 0)) > + if ((err = __netlink_create(sock, protocol)) < 0) > goto out_module; > > nlk = nlk_sk(sock->sk); > - 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/