Re: [PATCH-next] sched: Fix Dereference after null check

From: Peter Zijlstra
Date: Sat May 15 2021 - 17:05:00 EST


On Sat, May 15, 2021 at 06:11:17PM +0100, Khaled ROMDHANI wrote:
> The group_cfs_rq derefrence the 'se' variable that could
> be passed as NULL pointer. Fix this by adding a check
> against the sched entity 'se' before the derefrence.
>
> Addresses-Coverity: ("Dereference after null check")
> Signed-off-by: Khaled ROMDHANI <khaledromdhani216@xxxxxxxxx>

Please, burn that piece of garbage known as Coverity and go do something
useful.