Skip to content

Commit

Permalink
[PATCH] fix typo in acpi video brightness changes.
Browse files Browse the repository at this point in the history
Prevent possible null dereference due to misplaced ;

Signed-off-by: Dave Jones <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Dave Jones authored and Linus Torvalds committed Jun 24, 2006
1 parent 6edad16 commit d384ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d384ea6

Please sign in to comment.