projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bcache: don't pass a stack address to blkdev_get_by_path
[linux-2.6-microblaze.git]
/
drivers
/
md
/
bcache
/
super.c
diff --git
a/drivers/md/bcache/super.c
b/drivers/md/bcache/super.c
index
94b91c4
..
4a2aed0
100644
(file)
--- a/
drivers/md/bcache/super.c
+++ b/
drivers/md/bcache/super.c
@@
-2560,7
+2560,7
@@
static ssize_t register_bcache(struct kobject *k, struct kobj_attribute *attr,
err = "failed to open device";
bdev = blkdev_get_by_path(strim(path),
FMODE_READ|FMODE_WRITE|FMODE_EXCL,
-
sb
, NULL);
+
bcache_kobj
, NULL);
if (IS_ERR(bdev)) {
if (bdev == ERR_PTR(-EBUSY)) {
dev_t dev;