numam-spdk/lib/vmd
Tomasz Zawadzki 8500db5ee0 lib/vmd: check header_type after the vmd_adapter structure is verified
First check both vmd_pci_device for not being a NULL,
same as vmd_adapter structure being present.

Otherwise dev was dereferenced before checking for NULL.

Change-Id: I3719f33c1762f789b0eb63b0f2ddce8258843ded
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/462509
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Wojciech Malikowski <wojciech.malikowski@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-07-23 19:55:04 +00:00
..
Makefile lib/vmd: Merge vmd.c and vmd_pci.c into one file 2019-06-03 23:34:05 +00:00
vmd_spec.h lib/vmd: Moved MAX_VMD_TARGET definition to public header 2019-06-05 15:19:51 +00:00
vmd.c lib/vmd: check header_type after the vmd_adapter structure is verified 2019-07-23 19:55:04 +00:00
vmd.h lib/vmd: Removed typedefs from structures definitions 2019-06-05 15:19:51 +00:00