diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2013-10-25 03:09:27 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-25 04:12:14 -0400 |
commit | a1924d8a1da261293f81483fdad1e1af4ec47637 (patch) | |
tree | bec61c8de809034b93292b73fe6478340ed71877 /drivers/usb | |
parent | 0636fc507a976cdc40f21bdbcce6f0b98ff1dfe9 (diff) |
usb/gadget: f_mass_storage: use string literal as format in dev_set_name
Fix commit b27c08c953e994f792a03d9b7cbc5cf3f9844135 where dev_set_name()
is used without a string literal as format.
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/f_mass_storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c index 8fa8b1f771fb..a03ba2c83589 100644 --- a/drivers/usb/gadget/f_mass_storage.c +++ b/drivers/usb/gadget/f_mass_storage.c | |||
@@ -2949,7 +2949,7 @@ int fsg_common_create_lun(struct fsg_common *common, struct fsg_lun_config *cfg, | |||
2949 | lun->dev.release = fsg_lun_release; | 2949 | lun->dev.release = fsg_lun_release; |
2950 | lun->dev.parent = &common->gadget->dev; | 2950 | lun->dev.parent = &common->gadget->dev; |
2951 | dev_set_drvdata(&lun->dev, &common->filesem); | 2951 | dev_set_drvdata(&lun->dev, &common->filesem); |
2952 | dev_set_name(&lun->dev, name); | 2952 | dev_set_name(&lun->dev, "%s", name); |
2953 | lun->name = dev_name(&lun->dev); | 2953 | lun->name = dev_name(&lun->dev); |
2954 | 2954 | ||
2955 | rc = fsg_common_add_sysfs(common, lun); | 2955 | rc = fsg_common_add_sysfs(common, lun); |