summaryrefslogtreecommitdiffstats
path: root/net/llc/llc_input.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2008-05-30 02:57:29 -0700
committerDavid S. Miller <davem@davemloft.net>2008-05-30 02:57:29 -0700
commit3446b9d57edd0b96a89715fef222879e4919a115 (patch)
treeddf3a460069faba251a92bd1e2054b8db43d6c03 /net/llc/llc_input.c
parent12293bf91126ad253a25e2840b307fdc7c2754c3 (diff)
downloadop-kernel-dev-3446b9d57edd0b96a89715fef222879e4919a115.zip
op-kernel-dev-3446b9d57edd0b96a89715fef222879e4919a115.tar.gz
llc: Fix double accounting of received packets
llc_sap_rcv was being preceded by skb_set_owner_r, then calling llc_state_process that calls sock_queue_rcv_skb, that in turn calls skb_set_owner_r again making the space allowed to be used by the socket to be leaked, making the socket to get stuck. Fix it by setting skb->sk at llc_sap_rcv and leave the accounting to be done only at sock_queue_rcv_skb. Reported-by: Dmitry Petukhov <dmgenp@gmail.com> Tested-by: Dmitry Petukhov <dmgenp@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/llc/llc_input.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud