Commit fc958195 authored by Dan Carpenter's avatar Dan Carpenter Committed by sanglipeng
Browse files

thermal: intel: quark_dts: fix error pointer dereference

stable inclusion
from stable-v5.10.173
commit f73134231fa23e0856c15010db5f5c03693c1e92
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7X0QU

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f73134231fa23e0856c15010db5f5c03693c1e92



--------------------------------

[ Upstream commit f1b930e7 ]

If alloc_soc_dts() fails, then we can just return.  Trying to free
"soc_dts" will lead to an Oops.

Fixes: 8c187693 ("thermal: intel Quark SoC X1000 DTS thermal driver")
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent ebc43f14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment