lkml.org 
[lkml]   [2015]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2] staging: rtl8192u: r8192U_core: Fix for possible null pointer dereference
    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



    \
     
     \ /
      Last update: 2015-02-05 14:01    [W:9.138 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site