[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20191207185837.4030699-1-arnd@arndb.de>
Date: Sat, 7 Dec 2019 19:58:20 +0100
From: Arnd Bergmann <arnd@...db.de>
To: "Theodore Ts'o" <tytso@....edu>, Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: youling 257 <youling257@...il.com>, linux-kernel@...r.kernel.org
Subject: [PATCH] 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 <youling257@...il.com>
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
drivers/char/random.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 46afd14facb7..9280ca4d85c0 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -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,
};
--
2.20.0
Powered by blists - more mailing lists