summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2016-09-06 04:50:35 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2016-09-06 05:04:05 -0800
commit698dc55448a28f733683e14b63e3a90128129ef8 (patch)
treec8ac734c48712a7ccd809c62b737c1d71f6221c2
parentc820493652e830dc050e1418301e1bdec5691a1e (diff)
bcache: fix validate_cache_super() call
-rw-r--r--drivers/md/bcache/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index 27d984c1d37a..cdc2be4689c9 100644
--- a/drivers/md/bcache/super.c
+++ b/drivers/md/bcache/super.c
@@ -2227,7 +2227,7 @@ const char *bch_register_cache_set(char * const *devices, unsigned nr_devices,
if (__SB_IS_BDEV(le64_to_cpu(sb[i].sb->version)))
goto err_unlock;
- err = validate_cache_super(sb);
+ err = validate_cache_super(&sb[i]);
if (err)
goto err_unlock;
}