[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241016094111.7f5e899a@foz.lan>
Date: Wed, 16 Oct 2024 09:41:11 +0200
From: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
To: Colin Ian King <colin.i.king@...il.com>
Cc: Tomi Valkeinen <tomi.valkeinen@...asonboard.com>, Mauro Carvalho Chehab
<mchehab@...nel.org>, Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Sakari Ailus <sakari.ailus@...ux.intel.com>, linux-media@...r.kernel.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] media: i2c: ds90ub960: Fix missing return check
on ub960_rxport_read call
Em Wed, 2 Oct 2024 17:53:29 +0100
Colin Ian King <colin.i.king@...il.com> escreveu:
> The function ub960_rxport_read is being called and afterwards ret is
> being checked for any failures, however ret is not being assigned to
> the return of the function call. Fix this by assigning ret to the
> return of the call which appears to be missing.
>
> Fixes: afe267f2d368 ("media: i2c: add DS90UB960 driver")
> Signed-off-by: Colin Ian King <colin.i.king@...il.com>
No Cc: stable. Please follow the submission rules for fixes as stated
at:
Documentation/process/stable-kernel-rules.rst
In summary, all patches containing fixes shall have a Cc stable. There
are rules there for the very few exceptions where a patch is not meant
to be backported:
Cc: <stable+noautosel@...nel.org> # reason goes here, and must be present
> ---
> drivers/media/i2c/ds90ub960.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/i2c/ds90ub960.c b/drivers/media/i2c/ds90ub960.c
> index ffe5f25f8647..58424d8f72af 100644
> --- a/drivers/media/i2c/ds90ub960.c
> +++ b/drivers/media/i2c/ds90ub960.c
> @@ -1286,7 +1286,7 @@ static int ub960_rxport_get_strobe_pos(struct ub960_data *priv,
>
> clk_delay += v & UB960_IR_RX_ANA_STROBE_SET_CLK_DELAY_MASK;
>
> - ub960_rxport_read(priv, nport, UB960_RR_SFILTER_STS_1, &v);
> + ret = ub960_rxport_read(priv, nport, UB960_RR_SFILTER_STS_1, &v);
> if (ret)
> return ret;
>
Thanks,
Mauro
Powered by blists - more mailing lists