Skip to content

Commit 2995e71

Browse files
committed
ACPI: video: Clear driver_data pointer on remove
After commit 02c057d ("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: 02c057d ("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
1 parent d84e173 commit 2995e71

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/acpi/acpi_video.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,6 +2116,7 @@ static void acpi_video_bus_remove(struct platform_device *pdev)
21162116

21172117
kfree(video->attached_array);
21182118
kfree(video);
2119+
device->driver_data = NULL;
21192120
}
21202121

21212122
static int __init is_i740(struct pci_dev *dev)

0 commit comments

Comments
 (0)