Commit a66757a7 authored by Joe Thornber's avatar Joe Thornber Committed by Linus Torvalds

[PATCH] dm: proper error checking

An error value was not being checked correctly in open_dev().
[Kevin Corry]
parent e36a4491
...@@ -356,7 +356,7 @@ static int open_dev(struct dm_dev *d, dev_t dev) ...@@ -356,7 +356,7 @@ static int open_dev(struct dm_dev *d, dev_t dev)
return -ENOMEM; return -ENOMEM;
r = blkdev_get(d->bdev, d->mode, 0, BDEV_RAW); r = blkdev_get(d->bdev, d->mode, 0, BDEV_RAW);
if (!r) if (r)
return r; return r;
r = bd_claim(d->bdev, _claim_ptr); r = bd_claim(d->bdev, _claim_ptr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment