Unverified Commit 2abe7490 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!9935 ALSA: hda: cs35l41: Possible null pointer dereference in cs35l41_hda_unbind()

parents 703ec626 b8a0d229
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1187,7 +1187,7 @@ static void cs35l41_hda_unbind(struct device *dev, struct device *master, void *
	if (comps[cs35l41->index].dev == dev) {
		memset(&comps[cs35l41->index], 0, sizeof(*comps));
		sleep_flags = lock_system_sleep();
		device_link_remove(&comps->codec->core.dev, cs35l41->dev);
		device_link_remove(&cs35l41->codec->core.dev, cs35l41->dev);
		unlock_system_sleep(sleep_flags);
	}
}