mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue