Re: [PATCH] rtl8192_init_priv_variable: null check is missing for kzalloc

2019-07-25 Thread Greg Kroah-Hartman
On Sat, Jul 20, 2019 at 03:25:44PM -0500, Navid Emamdoost wrote: > Allocation for priv->pFirmware may fail, so a null check is necessary. > priv->pFirmware is accessed at line 2743. I added the check and made > appropriate changes to propagate the errno to the caller. > > Signed-off-by: Navid Emam

[PATCH] rtl8192_init_priv_variable: null check is missing for kzalloc

2019-07-20 Thread Navid Emamdoost
Allocation for priv->pFirmware may fail, so a null check is necessary. priv->pFirmware is accessed at line 2743. I added the check and made appropriate changes to propagate the errno to the caller. Signed-off-by: Navid Emamdoost --- drivers/staging/rtl8192u/r8192U_core.c | 13 +++-- 1 fi