commit | 88c12d42d2bb6e05deb3cfd24d12f6fe80544575 | [log] [tgz] |
---|---|---|
author | Coly Li <colyli@suse.de> | Thu Apr 25 00:48:37 2019 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Apr 24 10:56:28 2019 -0600 |
tree | a468c2ee2f98c1e94073fe7c5b178489c65f7784 | |
parent | 68d10e6979a3b59e3cd2e90bfcafed79c4cf180a [diff] |
bcache: add error check for calling register_bdev() This patch adds return value to register_bdev(). Then if failure happens inside register_bdev(), its caller register_bcache() may detect and handle the failure more properly. Signed-off-by: Coly Li <colyli@suse.de> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>