From 1d9d3c1755129366dfa36d877e64c3ef7e5ed3ec Mon Sep 17 00:00:00 2001 From: Sanjith T D Date: Mon, 7 Apr 2025 12:35:02 +0000 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3335014 Reviewed-by: Sreenivas Velpula Reviewed-by: svcacv GVS: buildbot_gerritrpt Reviewed-by: Sandeep Trasi --- drivers/block/tegra_virt_storage/tegra_hv_vblk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/tegra_virt_storage/tegra_hv_vblk.c b/drivers/block/tegra_virt_storage/tegra_hv_vblk.c index e1d25d90..324165fc 100644 --- a/drivers/block/tegra_virt_storage/tegra_hv_vblk.c +++ b/drivers/block/tegra_virt_storage/tegra_hv_vblk.c @@ -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. */