mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user