mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
usb/gadget: f_mass_storage: use string literal as format in dev_set_name
Fix commit b27c08c953 where dev_set_name()
is used without a string literal as format.
Reported-by: Fengguang Wu <[email protected]>
Signed-off-by: Andrzej Pietrasiewicz <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Acked-by: Michal Nazarewicz <[email protected]>
Cc: Kees Cook <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
0636fc507a
commit
a1924d8a1d
1 changed files with 1 additions and 1 deletions
|
|
@ -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.parent = &common->gadget->dev;
|
||||
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);
|
||||
|
||||
rc = fsg_common_add_sysfs(common, lun);
|
||||
|
|
|
|||
Loading…
Reference in a new issue