diff options
author | Hendrik Brueckner <brueckner@linux.vnet.ibm.com> | 2009-04-21 06:04:21 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-22 06:43:13 (GMT) |
commit | 60d3705fcbfe7deca8e94bc7ddecd6f9f1a4647e (patch) | |
tree | afd8b424d6a8367ebca081e103a035ca346f88f9 /samples | |
parent | bbe188c8f16effd902d1ad391e06e41ce649b22e (diff) | |
download | linux-60d3705fcbfe7deca8e94bc7ddecd6f9f1a4647e.tar.xz |
af_iucv: fix oops in iucv_sock_recvmsg() for MSG_PEEK flag
If iucv_sock_recvmsg() is called with MSG_PEEK flag set, the skb is enqueued
twice. If the socket is then closed, the pointer to the skb is freed twice.
Remove the skb_queue_head() call for MSG_PEEK, because the skb_recv_datagram()
function already handles MSG_PEEK (does not dequeue the skb).
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions