diff options
-rw-r--r-- | drivers/md/bcache/sysfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c index dd3f00a42729..12a2c2846f99 100644 --- a/drivers/md/bcache/sysfs.c +++ b/drivers/md/bcache/sysfs.c | |||
@@ -232,6 +232,8 @@ STORE(__cached_dev) | |||
232 | bch_uuid_write(dc->disk.c); | 232 | bch_uuid_write(dc->disk.c); |
233 | } | 233 | } |
234 | env = kzalloc(sizeof(struct kobj_uevent_env), GFP_KERNEL); | 234 | env = kzalloc(sizeof(struct kobj_uevent_env), GFP_KERNEL); |
235 | if (!env) | ||
236 | return -ENOMEM; | ||
235 | add_uevent_var(env, "DRIVER=bcache"); | 237 | add_uevent_var(env, "DRIVER=bcache"); |
236 | add_uevent_var(env, "CACHED_UUID=%pU", dc->sb.uuid), | 238 | add_uevent_var(env, "CACHED_UUID=%pU", dc->sb.uuid), |
237 | add_uevent_var(env, "CACHED_LABEL=%s", buf); | 239 | add_uevent_var(env, "CACHED_LABEL=%s", buf); |