[PATCH] Staging: rtl8192e prohibit deferencing of NULL pointer

Valentina Manea valentina.manea.m at gmail.com
Wed Jun 18 18:33:18 UTC 2014


On Wed, Jun 18, 2014 at 11:16 AM, Andreas Platschek
<platschek at ict.tuwien.ac.at> wrote:
>
>   rx_dropped:
> -    ieee->stats.rx_dropped++;
> +    if (ieee != NULL) {
> +        ieee->stats.rx_dropped++;
> +    }
>      return 0;

Style nit: don't use braces around a single statement.

Tina


More information about the devel mailing list