Re: [PATCH] sch_gred: kzalloc needs null check

2019-07-18 Thread Eric Dumazet
On 7/19/19 3:30 AM, Navid Emamdoost wrote: > call to kzalloc may fail and return null. So the result should be checked > against null. Added the check to cover kzalloc failure case. > > Signed-off-by: Navid Emamdoost > --- > net/sched/sch_gred.c | 3 +++ > 1 file changed, 3 insertions(+) >

[PATCH] sch_gred: kzalloc needs null check

2019-07-18 Thread Navid Emamdoost
call to kzalloc may fail and return null. So the result should be checked against null. Added the check to cover kzalloc failure case. Signed-off-by: Navid Emamdoost --- net/sched/sch_gred.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/sched/sch_gred.c b/net/sched/sch_gred.c index