linux/drivers/net/ethernet/cavium/thunder
Vincent c73e442693 net: thunderx: avoid dereferencing xcv when NULL
This fixes the following smatch and coccinelle warnings:

  drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119 xcv_setup_link() error: we previously assumed 'xcv' could be null (see line 118) [smatch]
  drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119:16-20: ERROR: xcv is NULL but dereferenced. [coccinelle]

Fixes: 6465859aba ("net: thunderx: Add RGMII interface type support")
Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Cc: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-31 13:07:40 -05:00
..
Makefile net: thunderx: Add RGMII interface type support 2016-08-13 11:59:31 -07:00
nic.h net: thunderx: Pause frame support 2016-11-25 20:21:17 -05:00
nic_main.c net: thunderx: Pause frame support 2016-11-25 20:21:17 -05:00
nic_reg.h net: thunderx: Program LMAC credits based on MTU 2016-11-16 13:28:33 -05:00
nicvf_ethtool.c net: nicvf: use new api ethtool_{get|set}_link_ksettings 2016-12-10 17:31:44 -05:00
nicvf_main.c net: thunderx: Fix transmit queue timeout issue 2016-12-02 13:32:59 -05:00
nicvf_queues.c net: thunderx: Fix transmit queue timeout issue 2016-12-02 13:32:59 -05:00
nicvf_queues.h net: thunderx: Fix transmit queue timeout issue 2016-12-02 13:32:59 -05:00
q_struct.h net: thunderx: Configure RED and backpressure levels 2016-11-25 20:21:17 -05:00
thunder_bgx.c net: thunderx: acpi: fix LMAC initialization 2017-01-12 16:50:03 -05:00
thunder_bgx.h net: thunderx: Pause frame support 2016-11-25 20:21:17 -05:00
thunder_xcv.c net: thunderx: avoid dereferencing xcv when NULL 2017-01-31 13:07:40 -05:00