Commit a1924d8a authored by Andrzej Pietrasiewicz's avatar Andrzej Pietrasiewicz Committed by Greg Kroah-Hartman

usb/gadget: f_mass_storage: use string literal as format in dev_set_name

Fix commit b27c08c9 where dev_set_name()
is used without a string literal as format.
Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Acked-by: default avatarMichal Nazarewicz <mina86@mina86.com>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0636fc50
...@@ -2949,7 +2949,7 @@ int fsg_common_create_lun(struct fsg_common *common, struct fsg_lun_config *cfg, ...@@ -2949,7 +2949,7 @@ int fsg_common_create_lun(struct fsg_common *common, struct fsg_lun_config *cfg,
lun->dev.release = fsg_lun_release; lun->dev.release = fsg_lun_release;
lun->dev.parent = &common->gadget->dev; lun->dev.parent = &common->gadget->dev;
dev_set_drvdata(&lun->dev, &common->filesem); dev_set_drvdata(&lun->dev, &common->filesem);
dev_set_name(&lun->dev, name); dev_set_name(&lun->dev, "%s", name);
lun->name = dev_name(&lun->dev); lun->name = dev_name(&lun->dev);
rc = fsg_common_add_sysfs(common, lun); rc = fsg_common_add_sysfs(common, lun);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment