vblk: Fix the IOCTL issue with block device node.

IOCTL was allowed via block device node due to
mapping of wrong ioctl callback . Fixed the mapping to
the correct ioctl callback that throws error when
ioctl is done on block device node.

Jira SSV-12846

Change-Id: I13b492f216c99ac68f9ac89c509b3019a92c50f8
Signed-off-by: Sanjith T D <std@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3335014
Reviewed-by: Sreenivas Velpula <svelpula@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
This commit is contained in:
Sanjith T D
2025-04-07 12:35:02 +00:00
committed by Jon Hunter
parent 89df3ba53b
commit 1d9d3c1755

View File

@@ -942,7 +942,7 @@ static const struct block_device_operations vblk_ops_no_ioctl = {
.open = vblk_open,
.release = vblk_release,
.getgeo = vblk_getgeo,
.ioctl = vblk_ioctl
.ioctl = vblk_ioctl_not_supported
};
/* The device operations structure. */