Skip to content

Commit

Permalink
cls_cgroup: Initialise classid when module is absent
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Herbert Xu authored and David S. Miller committed May 26, 2010
1 parent f925b13 commit ea16f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/cls_cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ea16f91

Please sign in to comment.