+16
−4
Loading
Due to the check on line 153 in t_nvme_dev, Klocwork thinks nvme can be null. Therefore, we must check that it isn't null before dereferencing it. We can either solve this the way I have here, or remove check that causes to_nvme_dev to return null. Change-Id: I86d4939664704ff1117a7c1b7dada7e1ae479c6f Signed-off-by:Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/406992 Reviewed-by:
Daniel Verkamp <daniel.verkamp@intel.com> Tested-by:
SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>