mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-19 12:00:00 +00:00
scsi: target: Fix incorrect function name in pscsi_create_type_disk()
[ Upstream commit da5aeca99dd0b6c7bf6679382756ea6bda195f72 ] In pr_err(), bdev_open_by_path() should be renamed to bdev_file_open_by_path() Fixes: 034f0cf8fdf9 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
c3cbeab93b
commit
a26feee1ae
@ -369,7 +369,7 @@ static int pscsi_create_type_disk(struct se_device *dev, struct scsi_device *sd)
|
||||
bdev_file = bdev_file_open_by_path(dev->udev_path,
|
||||
BLK_OPEN_WRITE | BLK_OPEN_READ, pdv, NULL);
|
||||
if (IS_ERR(bdev_file)) {
|
||||
pr_err("pSCSI: bdev_open_by_path() failed\n");
|
||||
pr_err("pSCSI: bdev_file_open_by_path() failed\n");
|
||||
scsi_device_put(sd);
|
||||
return PTR_ERR(bdev_file);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user