Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 70b0c114 authored by Zabelin Nikita's avatar Zabelin Nikita Committed by Greg Kroah-Hartman
Browse files

drm/gma500: Fix null dereference in hdmi teardown



[ Upstream commit 352e66900cde63f3dadb142364d3c35170bbaaff ]

pci_set_drvdata sets the value of pdev->driver_data to NULL,
after which the driver_data obtained from the same dev is
dereferenced in oaktrail_hdmi_i2c_exit, and the i2c_dev is
extracted from it. To prevent this, swap these calls.

Found by Linux Verification Center (linuxtesting.org) with Svacer.

Fixes: 1b082ccf ("gma500: Add Oaktrail support")
Signed-off-by: default avatarZabelin Nikita <n.zabelin@mt-integration.ru>
Signed-off-by: default avatarPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://lore.kernel.org/r/20250918150703.2562604-1-n.zabelin@mt-integration.ru


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 572c6568
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment