projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f6538c
)
net: sched: cls_basic: fix error path in basic_change()
author
Jiri Pirko
<jiri@resnulli.us>
Fri, 5 Dec 2014 14:50:22 +0000
(15:50 +0100)
committer
David S. Miller
<davem@davemloft.net>
Tue, 9 Dec 2014 20:41:56 +0000
(15:41 -0500)
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Reviewed-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_basic.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sched/cls_basic.c
b/net/sched/cls_basic.c
index 7cf0a62fc4c998a329677daa09459b52f57d6eb0..5aed341406c2366ed5c7b50c54f113e21bd27fde 100644
(file)
--- a/
net/sched/cls_basic.c
+++ b/
net/sched/cls_basic.c
@@
-178,10
+178,9
@@
static int basic_change(struct net *net, struct sk_buff *in_skb,
return -EINVAL;
}
- err = -ENOBUFS;
fnew = kzalloc(sizeof(*fnew), GFP_KERNEL);
- if (
fnew == NULL
)
-
goto errout
;
+ if (
!fnew
)
+
return -ENOBUFS
;
tcf_exts_init(&fnew->exts, TCA_BASIC_ACT, TCA_BASIC_POLICE);
err = -EINVAL;