]> git.droids-corp.org - dpdk.git/blobdiff - drivers/raw/ifpga/base/ifpga_sec_mgr.c
net/mlx5/linux: fix firmware version
[dpdk.git] / drivers / raw / ifpga / base / ifpga_sec_mgr.c
index 4cf1db30492c68e293d03602461a682bcc51987b..15fb5b6d4dce2181e8f67cc52052f443c47a4019 100644 (file)
@@ -610,7 +610,7 @@ int init_sec_mgr(struct ifpga_fme_hw *fme)
                smgr->rsu_status = NULL;
        }
 
-       if ((hw->pci_data->device_id == IFPGA_N3000_DID) &&
+       if (hw && (hw->pci_data->device_id == IFPGA_N3000_DID) &&
                (hw->pci_data->vendor_id == IFPGA_N3000_VID)) {
                smgr->ops = &n3000_sec_ops;
                smgr->copy_speed = IFPGA_N3000_COPY_SPEED;