Skip to content

Commit da5aeca

Browse files
murphy12138martinkpetersen
authored andcommitted
scsi: target: Fix incorrect function name in pscsi_create_type_disk()
In pr_err(), bdev_open_by_path() should be renamed to bdev_file_open_by_path() Fixes: 034f0cf ("target: port block device access to file") Signed-off-by: Baolin Liu <liubaolin@kylinos.cn> Link: https://lore.kernel.org/r/20241030021800.234980-1-liubaolin12138@163.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 84c1e27 commit da5aeca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/target/target_core_pscsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ static int pscsi_create_type_disk(struct se_device *dev, struct scsi_device *sd)
369369
bdev_file = bdev_file_open_by_path(dev->udev_path,
370370
BLK_OPEN_WRITE | BLK_OPEN_READ, pdv, NULL);
371371
if (IS_ERR(bdev_file)) {
372-
pr_err("pSCSI: bdev_open_by_path() failed\n");
372+
pr_err("pSCSI: bdev_file_open_by_path() failed\n");
373373
scsi_device_put(sd);
374374
return PTR_ERR(bdev_file);
375375
}

0 commit comments

Comments
 (0)