Commit 98e3528
nvme-fc: fix initialization order
ctrl->ops is used by nvme_alloc_admin_tag_set() but set by
nvme_init_ctrl() so reorder the calls to avoid a NULL pointer
dereference.
Fixes: 6dfba1c ("nvme-fc: use the tagset alloc/free helpers")
Signed-off-by: Ross Lagerwall <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>1 parent 955bc12 commit 98e3528
1 file changed
+8
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3521 | 3521 | | |
3522 | 3522 | | |
3523 | 3523 | | |
3524 | | - | |
3525 | | - | |
3526 | | - | |
3527 | | - | |
3528 | | - | |
3529 | | - | |
3530 | | - | |
3531 | 3524 | | |
3532 | 3525 | | |
3533 | 3526 | | |
| |||
3537 | 3530 | | |
3538 | 3531 | | |
3539 | 3532 | | |
3540 | | - | |
| 3533 | + | |
3541 | 3534 | | |
3542 | 3535 | | |
3543 | 3536 | | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
3544 | 3544 | | |
3545 | 3545 | | |
3546 | 3546 | | |
| |||
3592 | 3592 | | |
3593 | 3593 | | |
3594 | 3594 | | |
3595 | | - | |
3596 | | - | |
3597 | 3595 | | |
3598 | 3596 | | |
3599 | 3597 | | |
| |||
0 commit comments