]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mg_disk: fix error return code in mg_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 28 Mar 2013 15:43:43 +0000 (09:43 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Mar 2013 15:43:43 +0000 (09:43 -0600)
commitc613c5f686b5493290aeb6a3c4b3b2371a8582cf
tree230209f4ab9f65a3de43bed7b4c4d5b267815f05
parent80b00df291684850b5659ec95fb1fd2acbd2c0ec
mg_disk: fix error return code in mg_probe()

Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mg_disk.c