diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/can/dev.c | 4 | ||||
-rw-r--r-- | drivers/net/can/slcan.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/can/dev.c b/drivers/net/can/dev.c index 59ada082a994..f9cba4123c66 100644 --- a/drivers/net/can/dev.c +++ b/drivers/net/can/dev.c | |||
@@ -512,8 +512,8 @@ struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf) | |||
512 | skb->pkt_type = PACKET_BROADCAST; | 512 | skb->pkt_type = PACKET_BROADCAST; |
513 | skb->ip_summed = CHECKSUM_UNNECESSARY; | 513 | skb->ip_summed = CHECKSUM_UNNECESSARY; |
514 | 514 | ||
515 | skb_reserve(skb, sizeof(struct can_skb_priv)); | 515 | can_skb_reserve(skb); |
516 | ((struct can_skb_priv *)(skb->head))->ifindex = dev->ifindex; | 516 | can_skb_prv(skb)->ifindex = dev->ifindex; |
517 | 517 | ||
518 | *cf = (struct can_frame *)skb_put(skb, sizeof(struct can_frame)); | 518 | *cf = (struct can_frame *)skb_put(skb, sizeof(struct can_frame)); |
519 | memset(*cf, 0, sizeof(struct can_frame)); | 519 | memset(*cf, 0, sizeof(struct can_frame)); |
diff --git a/drivers/net/can/slcan.c b/drivers/net/can/slcan.c index e79a8d10e0fc..06b7e097d36e 100644 --- a/drivers/net/can/slcan.c +++ b/drivers/net/can/slcan.c | |||
@@ -195,8 +195,8 @@ static void slc_bump(struct slcan *sl) | |||
195 | skb->pkt_type = PACKET_BROADCAST; | 195 | skb->pkt_type = PACKET_BROADCAST; |
196 | skb->ip_summed = CHECKSUM_UNNECESSARY; | 196 | skb->ip_summed = CHECKSUM_UNNECESSARY; |
197 | 197 | ||
198 | skb_reserve(skb, sizeof(struct can_skb_priv)); | 198 | can_skb_reserve(skb); |
199 | ((struct can_skb_priv *)(skb->head))->ifindex = sl->dev->ifindex; | 199 | can_skb_prv(skb)->ifindex = sl->dev->ifindex; |
200 | 200 | ||
201 | memcpy(skb_put(skb, sizeof(struct can_frame)), | 201 | memcpy(skb_put(skb, sizeof(struct can_frame)), |
202 | &cf, sizeof(struct can_frame)); | 202 | &cf, sizeof(struct can_frame)); |