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

Commit 8a70d14d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: wcd9330: Fix null pointer access for event callback"

parents 29f4d9c8 d36e796c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -7229,7 +7229,10 @@ static int tomtom_post_reset_cb(struct wcd9xxx *wcd9xxx)
		else
			tomtom_hs_detect(codec, tomtom->mbhc.mbhc_cfg);
	}
	tomtom->machine_codec_event_cb(codec, WCD9XXX_CODEC_EVENT_CODEC_UP);

	if (tomtom->machine_codec_event_cb)
		tomtom->machine_codec_event_cb(codec,
				       WCD9XXX_CODEC_EVENT_CODEC_UP);

	tomtom_cleanup_irqs(tomtom);
	ret = tomtom_setup_irqs(tomtom);