Re: [PATCH 1/1] infiniband: hw: ocrdma: fix bad initialization

2016-12-14 Thread Doug Ledford
On 12/4/2016 1:20 AM, Leon Romanovsky wrote: > 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 >>

Re: [PATCH 1/1] infiniband: hw: ocrdma: fix bad initialization

2016-12-14 Thread Doug Ledford
On 12/4/2016 1:20 AM, Leon Romanovsky wrote: > 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

Re: [PATCH 1/1] infiniband: hw: ocrdma: fix bad initialization

2016-12-03 Thread Leon Romanovsky
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

Re: [PATCH 1/1] infiniband: hw: ocrdma: fix bad initialization

2016-12-03 Thread Leon Romanovsky
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 >

[PATCH 1/1] infiniband: hw: ocrdma: fix bad initialization

2016-12-03 Thread Pan Bian
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:

[PATCH 1/1] infiniband: hw: ocrdma: fix bad initialization

2016-12-03 Thread Pan Bian
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