rbd: fix error return code in rbd_dev_device_setup()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 14 Aug 2014 03:49:52 +0000 (20:49 -0700)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Wed, 10 Sep 2014 07:59:06 +0000 (11:59 +0400)
commit255939e783d8f45f8c58487dfc18957c44ea9871
treeb0d0c8e422e09fa79d0deb9ee2292b6e4cc3e856
parent58d1362b50dc87ebf18cd137e7a879fd99b7e721
rbd: fix error return code in rbd_dev_device_setup()

Fix to return -ENOMEM from the workqueue alloc error handling
case instead of 0, as done elsewhere in this function.

Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
drivers/block/rbd.c