Skip to contentSkip to conversation

i2c: mux: demux-pinctrl: Fix an error handling path in 'i2c_demux_pinctrl_probe()'

PATCH Applied Christophe JAILLET 3 participants 3 messages May 6, 2020 – May 12, 2020

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: mux: demux-pinctrl: Fix an error handling path in 'i2c_demux_pinctrl_probe()'

A call to 'i2c_demux_deactivate_master()' is missing in the error handling path, as already done in the remove function.

Fixes 50a5ba876908 ("i2c: mux: demux-pinctrl: add driver")
---
 drivers/i2c/muxes/i2c-demux-pinctrl.c | 1 +
 1 file changed, 1 insertion(+)
drivers/i2c/muxes/i2c-demux-pinctrl.c +1 -0
index 0e16490eb3a1..5365199a31f4 100644
@@ -272,6 +272,7 @@ static int i2c_demux_pinctrl_probe(struct platform_device *pdev)
 err_rollback_available:
 	device_remove_file(&pdev->dev, &dev_attr_available_masters);
 err_rollback:
+	i2c_demux_deactivate_master(priv);
 	for (j = 0; j < i; j++) {
 		of_node_put(priv->chan[j].parent_np);
 		of_changeset_destroy(&priv->chan[j].chgset);
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 5 lines · Christophe JAILLET

A call to 'i2c_demux_deactivate_master()' is missing in the error handling path, as already done in the remove function.

Fixes 50a5ba876908 ("i2c: mux: demux-pinctrl: add driver")

Applied to for-current, thanks! Peter, I hope you are okay with me applying patches for my strange driver directly.

#2 lore raw
Quoted 9 lines · Wolfram Sang
Quoted 5 lines · Christophe JAILLET

A call to 'i2c_demux_deactivate_master()' is missing in the error handling path, as already done in the remove function.

Fixes 50a5ba876908 ("i2c: mux: demux-pinctrl: add driver")

Applied to for-current, thanks! Peter, I hope you are okay with me applying patches for my strange driver directly.

Absolutely, you have always "owned" that one. I prefer to stay out :-)

Cheers,
Peter