]> git.baikalelectronics.ru Git - kernel.git/commit
mtip32xx: release the semaphore on an error path
authorAsai Thambi S P <asamymuthupa@micron.com>
Mon, 16 Apr 2012 19:27:55 +0000 (21:27 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 May 2012 14:42:14 +0000 (16:42 +0200)
commit60d0422c75bd9c5196618f5246e5870c3e58301d
tree1afe2bddb155f43ac9cfbad623aa6550cc4d4e84
parent51155c2848d68eb7b234ba191c10e6c323ee3b56
mtip32xx: release the semaphore on an error path

Release the semaphore in an error path in mtip_hw_get_scatterlist(). This
fixes the smatch warning inconsistent returns.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c