Patch "media: i2c: ds90ub960: Fix missing return check on ub960_rxport_read call" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    media: i2c: ds90ub960: Fix missing return check on ub960_rxport_read call

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     media-i2c-ds90ub960-fix-missing-return-check-on-ub96.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 19a2ae6a55b65094786b75adc36179ae5dc3b4f8
Author: Colin Ian King <colin.i.king@xxxxxxxxx>
Date:   Wed Oct 2 17:53:29 2024 +0100

    media: i2c: ds90ub960: Fix missing return check on ub960_rxport_read call
    
    [ Upstream commit 24ad2d1f773a11f69eecec3ec37ea3d76f2e9e7d ]
    
    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@xxxxxxxxx>
    Reviewed-by: Tomi Valkeinen <tomi.valkeinen@xxxxxxxxxxxxxxxx>
    Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/media/i2c/ds90ub960.c b/drivers/media/i2c/ds90ub960.c
index 8ba5750f5a231..7f30e8923633e 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;
 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux