Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea16f912 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller
Browse files

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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f925b130
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;