mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
intel_th: Use correct method of finding hub
Since commit8edc514b01
("intel_th: Make SOURCE devices children of the root device") the hub is not the parent of SOURCE devices any more, so the new helper function should be used for that instead of always using the parent. The intel_th_set_output() path, however, still uses the old logic, leading to the hub driver structure being aliased with something else, like struct pci_driver or struct acpi_driver, and an incorrect call to an address inferred from that, potentially resulting in a crash. Fixes:8edc514b01
("intel_th: Make SOURCE devices children of the root device") Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
This commit is contained in:
parent
50352fa730
commit
9ad5770871
1 changed files with 1 additions and 1 deletions
|
@ -927,7 +927,7 @@ EXPORT_SYMBOL_GPL(intel_th_trace_disable);
|
|||
int intel_th_set_output(struct intel_th_device *thdev,
|
||||
unsigned int master)
|
||||
{
|
||||
struct intel_th_device *hub = to_intel_th_device(thdev->dev.parent);
|
||||
struct intel_th_device *hub = to_intel_th_hub(thdev);
|
||||
struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver);
|
||||
|
||||
if (!hubdrv->set_output)
|
||||
|
|
Loading…
Reference in a new issue