Re: [PATCH v2] staging: rtlwifi: Fix potential NULL pointer dereference of kzalloc

From: Dan Carpenter
Date: Thu Mar 21 2019 - 03:21:03 EST


On Tue, Mar 19, 2019 at 03:15:08PM -0500, Aditya Pakki wrote:
> phydm.internal is allocated using kzalloc which is used multiple
> times without a check for NULL pointer. This patch avoids such a
> scenario.
>
> --
> v1: Patch collision with different things, fix as per Greg
> Signed-off-by: Aditya Pakki <pakki001@xxxxxxx>
> ---

Gar... Sorry, no, that's not quite right. It should be:

blah blah blah...

Signed-off-by: you
---
V1: Patch collision with different things, fix as per Greg

Try applying your patch with `cat raw_email.txt | git am` and you'll see
the problem with the commit message.

regards,
dan carpenter