mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 15:11:31 +00:00
fbdev: omap2: remove potential format string leak
Since kobject_init_and_add takes a format string, make sure that the passed in name cannot be accidentally parsed. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
8dc0a56529
commit
7e46cd705f
@ -324,7 +324,7 @@ int display_init_sysfs(struct platform_device *pdev)
|
||||
|
||||
for_each_dss_dev(dssdev) {
|
||||
r = kobject_init_and_add(&dssdev->kobj, &display_ktype,
|
||||
&pdev->dev.kobj, dssdev->alias);
|
||||
&pdev->dev.kobj, "%s", dssdev->alias);
|
||||
if (r) {
|
||||
DSSERR("failed to create sysfs files\n");
|
||||
omap_dss_put_device(dssdev);
|
||||
|
Loading…
Reference in New Issue
Block a user