Messages in this thread Patch in this message | | | From | Nicholas Mc Guire <> | Subject | [PATCH] scsi: incorrect use of init_completion fixup | Date | Tue, 23 Dec 2014 18:49:24 +0100 |
| |
The second init_completion call should be a reinit_completion here.
patch is against 3.18.0 linux-next
Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at> --- drivers/scsi/lpfc/lpfc_attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index 2f9b968..7f42807 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c @@ -725,7 +725,7 @@ lpfc_do_offline(struct lpfc_hba *phba, uint32_t type) } }
- init_completion(&online_compl); + reinit_completion(&online_compl); rc = lpfc_workq_post_event(phba, &status, &online_compl, type); if (rc == 0) return -ENOMEM; -- 1.7.10.4
| |