net/vmxnet3: fix dereference before null check
authorMichal Jastrzebski <michalx.k.jastrzebski@intel.com>
Fri, 29 Sep 2017 13:04:02 +0000 (15:04 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:49 +0000 (02:49 +0200)
commit4d0833e6f8d4c9814b0c8fa1a2f8ed2263ae4856
treeedbcb1fbf045201638ae3f7d9f242d58d5909a29
parentd2654a6a929c78c9098bd3ebf9aba2267facc066
net/vmxnet3: fix dereference before null check

Coverity reports check_after_deref:
Null-checking rq suggests that it may be null, but it
has already been dereferenced on all paths leading to
the check.
This patch removes NULL checking of "rq" from function
vmxnet3_dev_rx_queue_reset as it is already checked against NULL
one level up the callstack (function vmxnet3_dev_clear_queues).

Coverity issue: 143468
Fixes: 5aecdc17a97d ("vmxnet3: fix stop/restart")
Cc: stable@dpdk.org
Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Signed-off-by: Michal Jastrzebski <michalx.k.jastrzebski@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/vmxnet3/vmxnet3_rxtx.c