Re: [PATCH 1/1] block: mtip32xx: set error code on failure

2016-12-01 Thread Jens Axboe
On 11/30/2016 07:10 PM, Pan Bian wrote: > Fix bug https://bugzilla.kernel.org/show_bug.cgi?id=188531. In function > mtip_block_initialize(), variable rv takes the return value, and its > value should be negative on errors. rv is initialized as 0 and is not > reset when the call to ida_pre_get() fai

[PATCH 1/1] block: mtip32xx: set error code on failure

2016-11-30 Thread Pan Bian
Fix bug https://bugzilla.kernel.org/show_bug.cgi?id=188531. In function mtip_block_initialize(), variable rv takes the return value, and its value should be negative on errors. rv is initialized as 0 and is not reset when the call to ida_pre_get() fails. So 0 may be returned. The return value 0 ind