ethdev: fix using Rx split config before null check
authorYunjian Wang <wangyunjian@huawei.com>
Wed, 4 Nov 2020 01:24:36 +0000 (09:24 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 4 Nov 2020 11:21:06 +0000 (12:21 +0100)
commitb9b67d06747868d22b092c9a65619934659de807
tree0a2da8a0f5c9b153bbf6ff68deb8ec64f3f28efa
parent3e34ec3d4e73e17896e1b832f13930eeac42e574
ethdev: fix using Rx split config before null check

Coverity flags that 'rx_conf' variable is used before
it's checked for NULL. This patch fixes this issue.

Coverity issue: 363570
Fixes: 4ff702b5dfa9 ("ethdev: introduce Rx buffer split")

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_ethdev/rte_ethdev.c