[COMPAT]: TUNSETIFF needs to copy back data after ioctl.
Linux Kernel Mailing List <[email protected]> Mon, 14 Feb 2005 22:42:07 +0000
| Newsgroups | gmane.linux.kernel.commits.2-4 |
|---|---|
| Message-ID | <[email protected]> |
ChangeSet 1.1571.1.2, 2005/02/14 14:42:07-08:00, [email protected] [COMPAT]: TUNSETIFF needs to copy back data after ioctl. It is defined as a _IOW() which is erroneous, it should have been defined as _IORW() but that cannot be changed now without breaking all existing applications using this ioctl. Signed-off-by: David S. Miller <[email protected]> ioctl32.c | 1 + 1 files changed, 1 insertion(+) diff -Nru a/arch/sparc64/kernel/ioctl32.c b/arch/sparc64/kernel/ioctl32.c --- a/arch/sparc64/kernel/ioctl32.c 2005-02-16 14:03:08 -08:00 +++ b/arch/sparc64/kernel/ioctl32.c 2005-02-16 14:03:08 -08:00 @@ -698,6 +698,7 @@ set_fs (old_fs); if (!err) { switch (cmd) { + case TUNSETIFF: case SIOCGIFFLAGS: case SIOCGIFMETRIC: case SIOCGIFMTU: