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

Commit be9bac02 authored by Dan Carpenter's avatar Dan Carpenter Committed by Peter Rosin
Browse files

i2c: mux: pinctrl: potential NULL dereference on error



If i2c_mux_alloc() fails then we'd have a NULL dereference here.

Fixes: c4aee3e1 ("i2c: mux: pinctrl: remove platform_data")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
parent fc204671
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ static int i2c_mux_pinctrl_probe(struct platform_device *pdev)
err_del_adapter:
	i2c_mux_del_adapters(muxc);
err_put_parent:
	i2c_put_adapter(muxc->parent);
	i2c_put_adapter(parent);

	return ret;
}