[PATCH v2] staging: rtl8192u: r8192U_core: Fix for possible null pointer dereference

Rickard Strandqvist rickard_strandqvist at spectrumdigital.se
Thu Feb 5 17:39:13 UTC 2015


2015-02-05 13:51 GMT+01:00 Dan Carpenter <dan.carpenter at oracle.com>:
> On Thu, Feb 05, 2015 at 06:13:22PM +0530, Sudip Mukherjee wrote:
>> if (driver_info) {
>>       stats->RxIs40MHzPacket = driver_info->BW;
>>       if (stats->RxDrvInfoSize != 0)
>>               TranslateRxSignalStuff819xUsb(skb, stats, driver_info);
>> }
>
> If driver_info is non-NULL then stats->RxDrvInfoSize is not zero and
> also the reverse.  So really you only need to test one.
>
> regards,
> dan carpenter
>

True Dan

Okay, I'll make one last patch then, or if you want to do it Sudip?
Have you not done before Saturday I do it.

Kind regards
Rickard Strandqvist


More information about the devel mailing list