diff options
Diffstat (limited to 'drivers/md/dm-snap.c')
-rw-r--r-- | drivers/md/dm-snap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c index 5a2296de84a3..9ecff5f3023a 100644 --- a/drivers/md/dm-snap.c +++ b/drivers/md/dm-snap.c | |||
@@ -1111,8 +1111,9 @@ static int snapshot_ctr(struct dm_target *ti, unsigned int argc, char **argv) | |||
1111 | goto bad_hash_tables; | 1111 | goto bad_hash_tables; |
1112 | } | 1112 | } |
1113 | 1113 | ||
1114 | r = dm_kcopyd_client_create(&s->kcopyd_client); | 1114 | s->kcopyd_client = dm_kcopyd_client_create(); |
1115 | if (r) { | 1115 | if (IS_ERR(s->kcopyd_client)) { |
1116 | r = PTR_ERR(s->kcopyd_client); | ||
1116 | ti->error = "Could not create kcopyd client"; | 1117 | ti->error = "Could not create kcopyd client"; |
1117 | goto bad_kcopyd; | 1118 | goto bad_kcopyd; |
1118 | } | 1119 | } |