raw/ntb: fix null pointer dereference
authorXiaoyun Li <xiaoyun.li@intel.com>
Mon, 5 Aug 2019 05:02:47 +0000 (13:02 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Aug 2019 07:57:18 +0000 (09:57 +0200)
commit78eef20796bcd005b878abe9e8b243f0cf02a937
treecaf2558d6c29c37a183e8bac403d42065ce609e0
parente0a0b3d6987a1fff532519c8fa62113b14f009cc
raw/ntb: fix null pointer dereference

This patch fixes null pointer dereference issues found by coverity scan.

Coverity issue: 344981, 344991, 345000, 345002, 345006, 345024
Fixes: 277310027965 ("raw/ntb: introduce NTB raw device driver")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/raw/ntb/ntb.c