Patch "can: bittiming: can_fixup_bittiming(): change type of tseg1 and alltseg to unsigned int" 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

    can: bittiming: can_fixup_bittiming(): change type of tseg1 and alltseg to unsigned int

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:
     can-bittiming-can_fixup_bittiming-change-type-of-tse.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 298fc8494429ed11d86e4672d0adec838b7fe05e
Author: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
Date:   Wed Oct 13 15:00:10 2021 +0200

    can: bittiming: can_fixup_bittiming(): change type of tseg1 and alltseg to unsigned int
    
    [ Upstream commit e346290439609a8ac67122418ca2efbad8d0a7e7 ]
    
    All timing calculation is done with unsigned integers, so change type
    of tseg1 and alltseg to unsigned int, too.
    
    Link: https://lore.kernel.org/all/20211013130653.1513627-1-mkl@xxxxxxxxxxxxxx
    Link: https://github.com/linux-can/can-utils/pull/314
    Reported-by: Gary Bisson <bisson.gary@xxxxxxxxx>
    Signed-off-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/can/dev/bittiming.c b/drivers/net/can/dev/bittiming.c
index f49170eadd547..b1b5a82f08299 100644
--- a/drivers/net/can/dev/bittiming.c
+++ b/drivers/net/can/dev/bittiming.c
@@ -209,7 +209,7 @@ static int can_fixup_bittiming(struct net_device *dev, struct can_bittiming *bt,
 			       const struct can_bittiming_const *btc)
 {
 	struct can_priv *priv = netdev_priv(dev);
-	int tseg1, alltseg;
+	unsigned int tseg1, alltseg;
 	u64 brp64;
 
 	tseg1 = bt->prop_seg + bt->phase_seg1;



[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