We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 291c254 commit 71482fdCopy full SHA for 71482fd
drivers/scsi/cxgbi/libcxgbi.c
@@ -121,7 +121,8 @@ static inline void cxgbi_device_destroy(struct cxgbi_device *cdev)
121
"cdev 0x%p, p# %u.\n", cdev, cdev->nports);
122
cxgbi_hbas_remove(cdev);
123
cxgbi_device_portmap_cleanup(cdev);
124
- cxgbi_ppm_release(cdev->cdev2ppm(cdev));
+ if (cdev->cdev2ppm)
125
+ cxgbi_ppm_release(cdev->cdev2ppm(cdev));
126
if (cdev->pmap.max_connect)
127
cxgbi_free_big_mem(cdev->pmap.port_csk);
128
kfree(cdev);
0 commit comments