提交 d384ea69 编写于 作者: D Dave Jones 提交者: Linus Torvalds

[PATCH] fix typo in acpi video brightness changes.

Prevent possible null dereference due to misplaced ;
Signed-off-by: NDave Jones <davej@redhat.com>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 6edad161
......@@ -1645,7 +1645,7 @@ static int acpi_video_bus_put_devices(struct acpi_video_bus *video)
printk(KERN_WARNING PREFIX
"hhuuhhuu bug in acpi video driver.\n");
if (data->brightness);
if (data->brightness)
kfree(data->brightness->levels);
kfree(data->brightness);
kfree(data);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册