floppy: fix usercopy direction
authorJann Horn <jannh@google.com>
Tue, 26 Mar 2019 22:03:48 +0000 (23:03 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 9 Aug 2019 13:41:36 +0000 (07:41 -0600)
commit52f6f9d74f31078964ca1574f7bb612da7877ac8
tree2ae8f69fd8cae1c07d786b5837721c74422ba164
parentf0e6f41669d9e07f45b472e4de33d7c233a847bd
floppy: fix usercopy direction

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>
drivers/block/floppy.c