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

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

Merge "ASoC: wsa881x: Add check to avoid NULL pointer dereference"

parents cdbd16ba 7192e8b5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -889,6 +889,9 @@ static struct regmap *wsa881x_get_regmap(struct device *dev)
{
	struct wsa881x_priv *control = swr_get_dev_data(to_swr_device(dev));

	if (!control)
		return NULL;

	return control->regmap;
}