char: random: fix urandom ioctl support
PATCH 1/1 char: random: fix urandom ioctl support
My patch to move the /dev/random compat handling from fs/compat_ioctl.c int drivers missed the corresponding /dev/urandom support.
Use the same compat_ptr_ioctl() in both devices.
Fixes 507e4e2b430b ("compat_ioctl: remove /dev/random commands")
Reported-by youling 257 <[email protected]>
Signed-off-by Arnd Bergmann <[email protected]>
--- drivers/char/random.c | 1 + 1 file changed, 1 insertion(+)
drivers/char/random.c +1 -0
@@ -2176,6 +2176,7 @@ const struct file_operations urandom_fops = { .read = urandom_read, .write = random_write, .unlocked_ioctl = random_ioctl, + .compat_ioctl = compat_ptr_ioctl, .fasync = random_fasync, .llseek = noop_llseek, };
Signature · 1 line
2.20.0