Re: [PATCH] allocate_flower_entry: should check for null deref

From: David Miller
Date: Sun Jul 21 2019 - 14:47:48 EST


From: Navid Emamdoost <navid.emamdoost@xxxxxxxxx>
Date: Sun, 21 Jul 2019 01:37:31 -0500

> allocate_flower_entry does not check for allocation success, but tries
> to deref the result. I only moved the spin_lock under null check, because
> the caller is checking allocation's status at line 652.
>
> Signed-off-by: Navid Emamdoost <navid.emamdoost@xxxxxxxxx>

Applied.