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:Dan Carpenter <error27@gmail.com> Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment