]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
floppy: fix usercopy direction
authorJann Horn <jannh@google.com>
Tue, 26 Mar 2019 22:03:48 +0000 (23:03 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 27 Sep 2019 12:12:01 +0000 (07:12 -0500)
commitadf00a01125791057404d33c91208083dbc0bf7b
tree4da52e8398c8b29b0b14de501e12e3ae05f6637b
parent621ec887b7c3b5c4d5bc89a42dea64fd79bce0e5
floppy: fix usercopy direction

BugLink: https://bugs.launchpad.net/bugs/1845642
commit 52f6f9d74f31078964ca1574f7bb612da7877ac8 upstream.

As sparse points out, these two copy_from_user() should actually be
copy_to_user().

Fixes: 229b53c9bf4e ("take floppy compat ioctls to sodding floppy.c")
Cc: stable@vger.kernel.org
Acked-by: Alexander Popov <alex.popov@linux.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/block/floppy.c