diff options
| author | Mark Brown <broonie@kernel.org> | 2023-10-23 19:38:22 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2023-10-23 19:38:22 +0100 |
| commit | 4fc4db7a68c2c04522880c4f89317f7874a4188f (patch) | |
| tree | dc7e38eb44e2e4eb177245c157869ff301287590 /drivers/i2c/muxes/i2c-demux-pinctrl.c | |
| parent | 61f85372d293241f4139731c14cab9ac8e9436fb (diff) | |
| parent | 05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1 (diff) | |
ASoC: Merge up v6.6-rc7
Get fixes needed so we can enable build of ams-delta in more
configurations.
Diffstat (limited to 'drivers/i2c/muxes/i2c-demux-pinctrl.c')
| -rw-r--r-- | drivers/i2c/muxes/i2c-demux-pinctrl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/i2c/muxes/i2c-demux-pinctrl.c b/drivers/i2c/muxes/i2c-demux-pinctrl.c index a3a122fae71e..22f2280eab7f 100644 --- a/drivers/i2c/muxes/i2c-demux-pinctrl.c +++ b/drivers/i2c/muxes/i2c-demux-pinctrl.c @@ -243,6 +243,10 @@ static int i2c_demux_pinctrl_probe(struct platform_device *pdev) props[i].name = devm_kstrdup(&pdev->dev, "status", GFP_KERNEL); props[i].value = devm_kstrdup(&pdev->dev, "ok", GFP_KERNEL); + if (!props[i].name || !props[i].value) { + err = -ENOMEM; + goto err_rollback; + } props[i].length = 3; of_changeset_init(&priv->chan[i].chgset); |
