mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
ACPI: video: Clear driver_data pointer on remove
After commit02c057ddef("ACPI: video: Convert the driver to a platform one") the driver_data pointer in the ACPI companion device object is not cleared automatically on driver remove any more, so clear it directly in acpi_video_bus_remove(). Fixes:02c057ddef("ACPI: video: Convert the driver to a platform one") Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://patch.msgid.link/12840288.O9o76ZdvQC@rafael.j.wysocki
This commit is contained in:
parent
d84e173311
commit
2995e713d8
1 changed files with 1 additions and 0 deletions
|
|
@ -2116,6 +2116,7 @@ static void acpi_video_bus_remove(struct platform_device *pdev)
|
|||
|
||||
kfree(video->attached_array);
|
||||
kfree(video);
|
||||
device->driver_data = NULL;
|
||||
}
|
||||
|
||||
static int __init is_i740(struct pci_dev *dev)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue