Re: [PATCH] platform/x86: panasonic-laptop: set pcc after null device check to avoid null pointer dereference

2016-03-28 Thread Harald Welte
On Mon, Mar 28, 2016 at 05:26:12PM +0100, Colin King wrote: > Signed-off-by: Colin Ian King Acked-by: Harald Welte -- - Harald Welte http://laforge.gnumonks.org/

Re: [PATCH] platform/x86: panasonic-laptop: set pcc after null device check to avoid null pointer dereference

2016-03-28 Thread Harald Welte
On Mon, Mar 28, 2016 at 05:26:12PM +0100, Colin King wrote: > Signed-off-by: Colin Ian King Acked-by: Harald Welte -- - Harald Weltehttp://laforge.gnumonks.org/ "Privacy in residential applications is a

[PATCH] platform/x86: panasonic-laptop: set pcc after null device check to avoid null pointer dereference

2016-03-28 Thread Colin King
From: Colin Ian King acpi_pcc_hotkey_remove sanity checks to see if device is null, however, this check is performed after we have already passed device into a call to acpi_driver_data. If device is null, then acpi_driver_data will produce a null pointer dereference on

[PATCH] platform/x86: panasonic-laptop: set pcc after null device check to avoid null pointer dereference

2016-03-28 Thread Colin King
From: Colin Ian King acpi_pcc_hotkey_remove sanity checks to see if device is null, however, this check is performed after we have already passed device into a call to acpi_driver_data. If device is null, then acpi_driver_data will produce a null pointer dereference on device. The correct