i2c: mux: demux-pinctrl: Fix an error handling path in 'i2c_demux_pinctrl_probe()'
Subsystems (4)
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.
--- drivers/i2c/muxes/i2c-demux-pinctrl.c | 1 + 1 file changed, 1 insertion(+)
drivers/i2c/muxes/i2c-demux-pinctrl.c +1 -0
@@ -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
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")Signed-off-by Christophe JAILLET <[email protected]>
Applied to for-current, thanks! Peter, I hope you are okay with me applying patches for my strange driver directly.
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")Signed-off-by Christophe JAILLET <[email protected]>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