summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-06-09 17:47:27 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-09 17:47:27 +0200
commitfd4d34295b36c5d9a1aba3d3f2764d721db093be (patch)
tree8fc6069c00b156519c78fc3644a7eed4105a7bab /net
parentMerge branch 'for-linus' of git://neil.brown.name/md (diff)
parentcls_cgroup: Fix oops when user send improperly 'tc filter add' request (diff)
downloadlinux-fd4d34295b36c5d9a1aba3d3f2764d721db093be.tar.xz
linux-fd4d34295b36c5d9a1aba3d3f2764d721db093be.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: cls_cgroup: Fix oops when user send improperly 'tc filter add' request r8169: fix crash when large packets are received
Diffstat (limited to 'net')
-rw-r--r--net/sched/cls_cgroup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c
index cc29b44b1500..e5becb92b3e7 100644
--- a/net/sched/cls_cgroup.c
+++ b/net/sched/cls_cgroup.c
@@ -167,6 +167,9 @@ static int cls_cgroup_change(struct tcf_proto *tp, unsigned long base,
struct tcf_exts e;
int err;
+ if (!tca[TCA_OPTIONS])
+ return -EINVAL;
+
if (head == NULL) {
if (!handle)
return -EINVAL;