bnxt_en: Check for NULL rx or tx ring.
authorMichael Chan <mchan@broadcom.com>
Sun, 3 Jan 2016 04:45:00 +0000 (23:45 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jan 2016 20:54:39 +0000 (15:54 -0500)
commit3b2b7d9db74adb95aa0bd029298a741333eb847e
treeeeba748414229d700aebbfd204129cd431411403
parentb6ab4b01f53b5f9e17dbd4f91c95fa5049fa2101
bnxt_en: Check for NULL rx or tx ring.

Each bnxt_napi structure may no longer be having both an rx ring and
a tx ring.  Check for a valid ring before using it.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c