diff options
Diffstat (limited to 'drivers/md/bitmap.c')
| -rw-r--r-- | drivers/md/bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index 26ac8aad0b19..f084249295d9 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c | |||
| @@ -1678,9 +1678,9 @@ int bitmap_create(mddev_t *mddev) | |||
| 1678 | 1678 | ||
| 1679 | bitmap->mddev = mddev; | 1679 | bitmap->mddev = mddev; |
| 1680 | 1680 | ||
| 1681 | bm = sysfs_get_dirent(mddev->kobj.sd, "bitmap"); | 1681 | bm = sysfs_get_dirent(mddev->kobj.sd, NULL, "bitmap"); |
| 1682 | if (bm) { | 1682 | if (bm) { |
| 1683 | bitmap->sysfs_can_clear = sysfs_get_dirent(bm, "can_clear"); | 1683 | bitmap->sysfs_can_clear = sysfs_get_dirent(bm, NULL, "can_clear"); |
| 1684 | sysfs_put(bm); | 1684 | sysfs_put(bm); |
| 1685 | } else | 1685 | } else |
| 1686 | bitmap->sysfs_can_clear = NULL; | 1686 | bitmap->sysfs_can_clear = NULL; |
