Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752585AbcLDGUq (ORCPT ); Sun, 4 Dec 2016 01:20:46 -0500 Received: from mail.kernel.org ([198.145.29.136]:59118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750815AbcLDGUo (ORCPT ); Sun, 4 Dec 2016 01:20:44 -0500 Date: Sun, 4 Dec 2016 08:20:37 +0200 From: Leon Romanovsky To: Pan Bian Cc: Selvin Xavier , Devesh Sharma , Mitesh Ahuja , Doug Ledford , Sean Hefty , Hal Rosenstock , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Pan Bian Subject: Re: [PATCH 1/1] infiniband: hw: ocrdma: fix bad initialization Message-ID: <20161204062037.GH4497@leon.nu> References: <1480770621-6249-1-git-send-email-bianpan201602@163.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X1xGqyAVbSpAWs5A" Content-Disposition: inline In-Reply-To: <1480770621-6249-1-git-send-email-bianpan201602@163.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1512 Lines: 42 --X1xGqyAVbSpAWs5A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Dec 03, 2016 at 09:10:21PM +0800, Pan Bian wrote: > From: Pan Bian > > In function ocrdma_mbx_create_ah_tbl(), returns the value of status on > errors. However, because status is initialized with 0, 0 will be > returned even if on error paths. This patch initialize status with > "-ENOMEM". > > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188831 > > Signed-off-by: Pan Bian Thanks, Reviewed-by: Leon Romanovsky --X1xGqyAVbSpAWs5A Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJYQ7W1AAoJEORje4g2clinGH4P/0gGFWqiEBgYNrVK9uWPzwPh dp6N8PMG89mMSVO079c1xj+s0tu4q/J7DVhcdpDKuD6Scwpi5CPva9lOohRQPZzv YqJOyprA4Vby1Jd311pU0KWtREcw85EfMTQV34JkFM7UJboCfFFKJ4OHwI/FL6ds UiRLiwv6iFqzZaQGQQDkIe3fFoo8KfxJ2sKAj/EO+JUfZCIv9+pdxUbiVF78fX6Q n1qQJ+qLRWhHIjJ1IaujlIxWTicQC7hxWXmXBuuDQSWoSFx82rfMY1W0lD1kKzJ8 ab1mpKMHtUOuGSnKTWrrY+yuuD5M3LGqJHnq+eOXAfy3A88g5po19+21O7hA1Q7P 0F/bCVbyYUjS5pw0gu36g0LMClxyoDe1bpyZuN2tQiDqcDcHJxKIMPc74JU3Oe4F 9jRfgSHIXcBr2xVWm1xvV63mIkPXVfNO7WrDgJjn25gnYkM4GJtcRmRMhPss+hkA O4xJfPxhHer4vTtZm5Y589WwokN8zijBR+rxpjuffL/eGsH20fF3kTnO2kTNxmb3 h1U+PyEMRnUhwza3cIEPWVQxyDlUG/MOOOwdT8ibpco5q2LbGzXqa7GNgHRnOp49 /BN2Y27vV3l2VvA6tS3NnW3/NJ0JUoeWijMNDUKui1pEC2WOj5kDWpIgZeVueT7Q oMLzjYETfNEJ2e+rYMlu =E+kD -----END PGP SIGNATURE----- --X1xGqyAVbSpAWs5A--