loop: fix error return code in loop_add()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 22 Mar 2013 14:59:19 +0000 (08:59 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 22 Mar 2013 14:59:19 +0000 (08:59 -0600)
commit183cfb5720dfc393641b87710ce78561af3db6cd
tree111d459317c61ba7e12406b942a6eea29f937819
parentd137c8306c748d89260400176613b5a85574b255
loop: fix error return code in loop_add()

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c