From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754996AbcKJB3d (ORCPT ); Wed, 9 Nov 2016 20:29:33 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:46738 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753453AbcKJB3c (ORCPT ); Wed, 9 Nov 2016 20:29:32 -0500 Date: Wed, 09 Nov 2016 20:29:29 -0500 (EST) Message-Id: <20161109.202929.1025319446990411176.davem@davemloft.net> To: arnd@arndb.de Cc: david.vrabel@citrix.com, wei.liu2@citrix.com, paul.durrant@citrix.com, jgross@suse.com, filipe.manco@neclab.eu, xen-devel@lists.xenproject.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [Xen PATCH] xen-netback: fix error handling output From: David Miller In-Reply-To: <20161108133449.1649345-1-arnd@arndb.de> References: <20161108133449.1649345-1-arnd@arndb.de> X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 09 Nov 2016 16:30:00 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Date: Tue, 8 Nov 2016 14:34:34 +0100 > The connect function prints an unintialized error code after an > earlier initialization was removed: > > drivers/net/xen-netback/xenbus.c: In function 'connect': > drivers/net/xen-netback/xenbus.c:938:3: error: 'err' may be used uninitialized in this function [-Werror=maybe-uninitialized] > > This prints it as -EINVAL instead, which seems to be the most > appropriate error code. Before the patch that caused the warning, > this would print a positive number returned by vsscanf() instead, > which is also wrong. We probably don't need a backport though, > as fixing the warning here should be sufficient. > > Fixes: f95842e7a9f2 ("xen: make use of xenbus_read_unsigned() in xen-netback") > Fixes: 8d3d53b3e433 ("xen-netback: Add support for multiple queues") > Signed-off-by: Arnd Bergmann That first Fixes: commit mentioned is in neither of my trees, so I assume it is in the Xen tree and thus this fix should get applied there.