Commit f4407e60 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: core: Fix a source code comment

Fix an incorrect reference to the scsi_remove_host() function in a source
code comment.

Link: https://lore.kernel.org/r/20230210205200.36973-2-bvanassche@acm.org
Fixes: b49493f9 ("Fix a memory leak in scsi_host_dev_release()")
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 5794a390
...@@ -356,7 +356,7 @@ static void scsi_host_dev_release(struct device *dev) ...@@ -356,7 +356,7 @@ static void scsi_host_dev_release(struct device *dev)
/* /*
* Free the shost_dev device name here if scsi_host_alloc() * Free the shost_dev device name here if scsi_host_alloc()
* and scsi_host_put() have been called but neither * and scsi_host_put() have been called but neither
* scsi_host_add() nor scsi_host_remove() has been called. * scsi_host_add() nor scsi_remove_host() has been called.
* This avoids that the memory allocated for the shost_dev * This avoids that the memory allocated for the shost_dev
* name is leaked. * name is leaked.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment