projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f925b13
)
cls_cgroup: Initialise classid when module is absent
author
Herbert Xu
<
[email protected]
>
Wed, 26 May 2010 01:53:57 +0000
(18:53 -0700)
committer
David S. Miller
<
[email protected]
>
Wed, 26 May 2010 01:53:57 +0000
(18:53 -0700)
When the cls_cgroup module is not loaded, task_cls_classid will
return an uninitialised classid instead of zero.
Reported-by: Stephen Rothwell <
[email protected]
>
Signed-off-by: Herbert Xu <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
include/net/cls_cgroup.h
patch
|
blob
|
history
diff --git
a/include/net/cls_cgroup.h
b/include/net/cls_cgroup.h
index 6cf44866cecdb47d8adb1a6d8100ec83fc4c5a02..726cc353640988bd6fed9361f74cb8ef6dfbb9ce 100644
(file)
--- a/
include/net/cls_cgroup.h
+++ b/
include/net/cls_cgroup.h
@@
-39,7
+39,7
@@
extern int net_cls_subsys_id;
static inline u32 task_cls_classid(struct task_struct *p)
{
int id;
- u32 classid;
+ u32 classid
= 0
;
if (in_interrupt())
return 0;