diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2010-05-25 21:53:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-25 21:53:57 -0400 |
commit | ea16f912a6ad9fe43131a2e2a108f089c432d510 (patch) | |
tree | ebd5a0663fb5c8fd030fe84a05fb3fb09382b822 /include/net/cls_cgroup.h | |
parent | f925b1303e0672effc78547353bd2ddfe11f5b5f (diff) |
cls_cgroup: Initialise classid when module is absent
When the cls_cgroup module is not loaded, task_cls_classid will
return an uninitialised classid instead of zero.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/cls_cgroup.h')
-rw-r--r-- | include/net/cls_cgroup.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/cls_cgroup.h b/include/net/cls_cgroup.h index 6cf44866cecd..726cc3536409 100644 --- a/include/net/cls_cgroup.h +++ b/include/net/cls_cgroup.h | |||
@@ -39,7 +39,7 @@ extern int net_cls_subsys_id; | |||
39 | static inline u32 task_cls_classid(struct task_struct *p) | 39 | static inline u32 task_cls_classid(struct task_struct *p) |
40 | { | 40 | { |
41 | int id; | 41 | int id; |
42 | u32 classid; | 42 | u32 classid = 0; |
43 | 43 | ||
44 | if (in_interrupt()) | 44 | if (in_interrupt()) |
45 | return 0; | 45 | return 0; |