floppy: ignore kernel-only members in FDRAWCMD ioctl input
authorMatthew Daley <mattd@bugfuzz.com>
Mon, 28 Apr 2014 07:05:20 +0000 (19:05 +1200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 5 May 2014 14:46:55 +0000 (07:46 -0700)
commitef87dbe7614341c2e7bfe8d32fcb7028cc97442c
tree3fe51b6b5d0744320c1f785f9d2dadb01f789de1
parent89ca3b881987f5a4be4c5dbaa7f0df12bbdde2fd
floppy: ignore kernel-only members in FDRAWCMD ioctl input

Always clear out these floppy_raw_cmd struct members after copying the
entire structure from userspace so that the in-kernel version is always
valid and never left in an interdeterminate state.

Signed-off-by: Matthew Daley <mattd@bugfuzz.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/floppy.c