diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-01-24 15:21:02 -0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-01-24 15:21:02 -0800 |
commit | dbcb5855d108b7fa20ab42567a5412ce9dcd776a (patch) | |
tree | b1c165e43ef28d9e22c118e8cbb983431ace3c7a /arch | |
parent | 6640e69731b42fd5e3d2b26201c8b34fc897a0ee (diff) | |
download | kernel_samsung_crespo-dbcb5855d108b7fa20ab42567a5412ce9dcd776a.zip kernel_samsung_crespo-dbcb5855d108b7fa20ab42567a5412ce9dcd776a.tar.gz kernel_samsung_crespo-dbcb5855d108b7fa20ab42567a5412ce9dcd776a.tar.bz2 |
[AF_PACKET]: Fix BPF handling.
This fixes a bug introduced by:
commit fda9ef5d679b07c9d9097aaf6ef7f069d794a8f9
Author: Dmitry Mishin <dim@openvz.org>
Date: Thu Aug 31 15:28:39 2006 -0700
[NET]: Fix sk->sk_filter field access
sk_run_filter() returns either 0 or an unsigned 32-bit
length which says how much of the packet to retain.
If that 32-bit unsigned integer is larger than the packet,
this is fine we just leave the packet unchanged.
The above commit caused all filter return values which
were negative when interpreted as a signed integer to
indicate a packet drop, which is wrong.
Based upon a report and initial patch by Raivis Bucis.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions