Patch "media: ir_toy: assignment to be16 should be of correct type" has been added to the 5.14-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: ir_toy: assignment to be16 should be of correct type

to the 5.14-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-ir_toy-assignment-to-be16-should-be-of-correct.patch
and it can be found in the queue-5.14 subdirectory.

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



commit 6ab677df7cbe5316945d4b1f11193ce4b4ee37d5
Author: Sean Young <sean@xxxxxxxx>
Date:   Wed Oct 13 09:14:10 2021 +0100

    media: ir_toy: assignment to be16 should be of correct type
    
    [ Upstream commit febfe985fc2ea052a363f6525ff624b8efd5273c ]
    
    commit f0c15b360fb6 ("media: ir_toy: prevent device from hanging during
    transmit") removed a cpu_to_be16() cast, which causes a sparse warning.
    
    Fixes: f0c15b360fb6 ("media: ir_toy: prevent device from hanging during transmit")
    Reported-by: Hans Verkuil <hverkuil@xxxxxxxxx>
    Signed-off-by: Sean Young <sean@xxxxxxxx>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/media/rc/ir_toy.c b/drivers/media/rc/ir_toy.c
index 48d52baec1a1c..1aa7989e756cc 100644
--- a/drivers/media/rc/ir_toy.c
+++ b/drivers/media/rc/ir_toy.c
@@ -310,7 +310,7 @@ static int irtoy_tx(struct rc_dev *rc, uint *txbuf, uint count)
 		buf[i] = cpu_to_be16(v);
 	}
 
-	buf[count] = 0xffff;
+	buf[count] = cpu_to_be16(0xffff);
 
 	irtoy->tx_buf = buf;
 	irtoy->tx_len = size;



[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