]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
af_iucv: fix recvmsg by replacing skb_pull() function
authorUrsula Braun <ursula.braun@de.ibm.com>
Sun, 7 Apr 2013 22:19:26 +0000 (22:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2013 21:16:57 +0000 (17:16 -0400)
commitf9c41a62bba3f3f7ef3541b2a025e3371bcbba97
tree39aa5a3b8a584cff0d1974e60d22015a26d04e41
parent88c5b5ce5cb57af6ca2a7cf4d5715fa320448ff9
af_iucv: fix recvmsg by replacing skb_pull() function

When receiving data messages, the "BUG_ON(skb->len < skb->data_len)" in
the skb_pull() function triggers a kernel panic.

Replace the skb_pull logic by a per skb offset as advised by
Eric Dumazet.

Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/iucv/af_iucv.h
net/iucv/af_iucv.c