Skip to content

Commit f4407e6

Browse files
bvanasschemartinkpetersen
authored andcommitted
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: b49493f ("Fix a memory leak in scsi_host_dev_release()") Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 5794a39 commit f4407e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/scsi/hosts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ static void scsi_host_dev_release(struct device *dev)
356356
/*
357357
* Free the shost_dev device name here if scsi_host_alloc()
358358
* and scsi_host_put() have been called but neither
359-
* scsi_host_add() nor scsi_host_remove() has been called.
359+
* scsi_host_add() nor scsi_remove_host() has been called.
360360
* This avoids that the memory allocated for the shost_dev
361361
* name is leaked.
362362
*/

0 commit comments

Comments
 (0)