ethdev: fix error handling in PCI fields copy
authorBernard Iremonger <bernard.iremonger@intel.com>
Fri, 6 Nov 2015 17:20:01 +0000 (17:20 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 10 Nov 2015 16:06:53 +0000 (17:06 +0100)
commit7a69f724518d7ada83a0b60cb7183a5520e3158d
tree5a1236d20ced51eb6511b9531e1010400cc0fb52
parent2892fcc14e9b25e03b5f1fe3d62350685fcd2b07
ethdev: fix error handling in PCI fields copy

add return statement to if branch

Dereferencing NULL pointer reported by Coverity, CID 119256.
Dereferencing NULL pointer reported by Coverity, CID 119257.

Fixes: 494adb7f63f2 ("ethdev: add device fields from PCI layer")

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
lib/librte_ether/rte_ethdev.c