summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghu Krishnamurthy <rk@daterainc.com>2015-02-10 23:39:29 -0800
committerKent Overstreet <kmo@daterainc.com>2015-02-12 23:44:03 -0800
commit419f208394c58fe693a5dbaae162f41154096e43 (patch)
tree18b2db7f0ccefa5b1dc9c3a83e4d18c1a6fe2548
parent198c35706c2c32bbc5dae99c4d6d717a2e61c3bb (diff)
bch_query_uuid now returns user_uuid of cache-set instead of
set_uuid (which is internal uuid). Issue DAT- Change-Id: Ide5271808526c6be2aa88b64b4ca824c7acc0b9f
-rw-r--r--drivers/md/bcache/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/ioctl.c b/drivers/md/bcache/ioctl.c
index c2bd70a51d7a..393bfc3685e3 100644
--- a/drivers/md/bcache/ioctl.c
+++ b/drivers/md/bcache/ioctl.c
@@ -493,7 +493,7 @@ static long bch_query_uuid(struct cache_set *c, unsigned long arg)
struct bch_ioctl_query_uuid __user *user_i = (void __user *) arg;
if (copy_to_user(&user_i->uuid,
- &c->sb.set_uuid,
+ &c->sb.user_uuid,
sizeof(user_i->uuid)))
return -EFAULT;