]> git.baikalelectronics.ru Git - kernel.git/commit
random: don't forget compat_ioctl on urandom
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 17 Dec 2019 17:24:55 +0000 (18:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 18:19:24 +0000 (19:19 +0100)
commit8dc4c45374d42b37bc44dca862da22742df655a6
tree672b3f4fdf823e301821a55e65352b9d56cd2342
parent2d4c8e9299c2d95ecf176d6f1526188a69fff135
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: 3b7ba0b69907 ("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>
drivers/char/random.c