Patch "can: Use correct type in sizeof() in nla_put()" has been added to the 4.1-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
can: Use correct type in sizeof() in nla_put()
to the 4.1-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-use-correct-type-in-sizeof-in-nla_put.patch
and it can be found in the queue-4.1 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
562b103a21974c2f9cd67514d110f918bb3e1796Mon Sep 17 00:00:00 2001
From: Marek Vasut <[email protected]>
Date: Fri, 30 Oct 2015 13:48:19 +0100
Subject: can: Use correct type in sizeof() in nla_put()
From: Marek Vasut <[email protected]>
commit 562b103a21974c2f9cd67514d110f918bb3e1796 upstream.
The sizeof() is invoked on an incorrect variable, likely due to some copy-paste error, and this might result in memory corruption. Fix this.
--- drivers/net/can/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/can/dev.c +1 -1
@@ -915,7 +915,7 @@ static int can_fill_info(struct sk_buffnla_put (skb,IFLA_CAN_BITTIMING_CONST , sizeof(*priv->bittiming_const), priv->bittiming_const)) || -nla_put (skb,IFLA_CAN_CLOCK ,sizeof (cm), &priv->clock) || +nla_put (skb,IFLA_CAN_CLOCK ,sizeof (priv->clock), &priv->clock) ||nla_put_u32 (skb,IFLA_CAN_STATE , state) ||nla_put (skb,IFLA_CAN_CTRLMODE ,sizeof (cm), &cm) || nla_put_u32(skb, IFLA_CAN_RESTART_MS, priv->restart_ms) ||
Patches currently in stable-queue which might be from [email protected] are
queue-4.1/can-use-correct-type-in-sizeof-in-nla_put.patch