[dpdk-dev] [dpdk-stable] [PATCH v2] net/vmxnet3: fix dereference before null check

Ferruh Yigit ferruh.yigit at intel.com
Mon Oct 2 23:45:55 CEST 2017


On 10/2/2017 10:39 PM, Ferruh Yigit wrote:
> On 9/29/2017 2:04 PM, Michal Jastrzebski wrote:
>> 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: yongwang at vmware.com
>> Cc: stable at dpdk.org
>>
>> Signed-off-by: Tomasz Kulasek <tomaszx.kulasek at intel.com>
>> Signed-off-by: Michal Jastrzebski <michalx.k.jastrzebski at intel.com>
> 
> Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>

Applied to dpdk-next-net/master, thanks.


More information about the dev mailing list