mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
thermal: intel: quark_dts: fix error pointer dereference
[ Upstream commitf1b930e740] If alloc_soc_dts() fails, then we can just return. Trying to free "soc_dts" will lead to an Oops. Fixes:8c18769396("thermal: intel Quark SoC X1000 DTS thermal driver") Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ada41093fb
commit
69e49f1b53
1 changed files with 2 additions and 10 deletions
Loading…
Add table
Add a link
Reference in a new issue