X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=net%2Fsched%2Fcls_cgroup.c;h=e4877ca6727c4b098ef1b6f08163fd7702d3eea2;hb=f653398c86a1c104f0992bd788dd4bb065449be4;hp=cc29b44b1500ef24a5115e044cd3478a602c6a61;hpb=e65fcfd63a9a62baa5708484ff8edbe56eb3e7ec;p=safe%2Fjmp%2Flinux-2.6 diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c index cc29b44..e4877ca 100644 --- a/net/sched/cls_cgroup.c +++ b/net/sched/cls_cgroup.c @@ -62,13 +62,7 @@ static u64 read_classid(struct cgroup *cgrp, struct cftype *cft) static int write_classid(struct cgroup *cgrp, struct cftype *cft, u64 value) { - if (!cgroup_lock_live_group(cgrp)) - return -ENODEV; - cgrp_cls_state(cgrp)->classid = (u32) value; - - cgroup_unlock(); - return 0; } @@ -167,6 +161,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;