projects
/
linux-dmdedup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8aea81e
)
dm dedup: check return from dm_set_target_max_io_len
author
Mike Snitzer
<snitzer@redhat.com>
Mon, 22 Sep 2014 15:29:43 +0000
(11:29 -0400)
committer
Mike Snitzer
<snitzer@redhat.com>
Mon, 22 Sep 2014 15:29:43 +0000
(11:29 -0400)
drivers/md/dm-dedup-target.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-dedup-target.c
b/drivers/md/dm-dedup-target.c
index 699af961d32b4a4223a2939c39990698cd0326e5..00a69585501aedc291ba97f885e1ae37381bdffe 100644
(file)
--- a/
drivers/md/dm-dedup-target.c
+++ b/
drivers/md/dm-dedup-target.c
@@
-684,7
+684,10
@@
static int dm_dedup_ctr_fn(struct dm_target *ti, unsigned int argc, char **argv)
dc->flushrq = flushrq;
dc->writes_after_flush = 0;
- dm_set_target_max_io_len(ti, dc->sectors_per_block);
+ r = dm_set_target_max_io_len(ti, dc->sectors_per_block);
+ if (r)
+ goto bad_kvstore_init;
+
ti->private = dc;
da->meta_dev = da->data_dev = NULL;