diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-12-17 18:24:55 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-17 19:19:24 +0100 |
commit | 4aa37c463764052c68c5c430af2a67b5d784c1e0 (patch) | |
tree | 672b3f4fdf823e301821a55e65352b9d56cd2342 /drivers/char/random.c | |
parent | 05b686b573cfb35a227c30787083a6631ff0f0c9 (diff) | |
download | linux-stable-4aa37c463764052c68c5c430af2a67b5d784c1e0.tar.gz linux-stable-4aa37c463764052c68c5c430af2a67b5d784c1e0.tar.bz2 linux-stable-4aa37c463764052c68c5c430af2a67b5d784c1e0.zip |
random: don't forget compat_ioctl on urandom
Recently, there's been some compat ioctl cleanup, in which large
hardcoded lists were replaced with compat_ptr_ioctl. One of these
changes involved removing the random.c hardcoded list entries and adding
a compat ioctl function pointer to the random.c fops. In the process,
urandom was forgotten about, so this commit fixes that oversight.
Fixes: 507e4e2b430b ("compat_ioctl: remove /dev/random commands")
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Link: https://lore.kernel.org/r/20191217172455.186395-1-Jason@zx2c4.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/random.c')
-rw-r--r-- | drivers/char/random.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c index 909e0c3d82ea..cda12933a17d 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -2175,6 +2175,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, }; |