summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2022-04-21 10:29:03 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2022-05-16 22:03:45 +0200
commit2af84932b3a1db29e37b10ef7f268da47489eb16 (patch)
tree019d3aee0275eb984b771d1a5eb6872d4a68c4d7
parentd887ae3247e022183f244cb325dca1dfbd0a9ed0 (diff)
downloadlinux-next-2af84932b3a1db29e37b10ef7f268da47489eb16.tar.gz
can: raw: raw_sendmsg(): remove not needed setting of skb->sk
The skb in raw_sendmsg() is allocated with sock_alloc_send_skb(), which subsequently calls sock_alloc_send_pskb() -> skb_set_owner_w(), which assigns "skb->sk = sk". This patch removes the not needed setting of skb->sk. Link: https://lore.kernel.org/all/20220502091946.1916211-2-mkl@pengutronix.de Acked-by: Oliver Hartkopp <socketcan@hartkopp.net> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--net/can/raw.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/can/raw.c b/net/can/raw.c
index b7dbb57557f3..1a68efae43c2 100644
--- a/net/can/raw.c
+++ b/net/can/raw.c
@@ -820,7 +820,6 @@ static int raw_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
skb_setup_tx_timestamp(skb, sk->sk_tsflags);
skb->dev = dev;
- skb->sk = sk;
skb->priority = sk->sk_priority;
err = can_send(skb, ro->loopback);