floppy: don't write kernel-only members to FDRAWCMD ioctl output
authorMatthew Daley <mattd@bugfuzz.com>
Mon, 28 Apr 2014 07:05:21 +0000 (19:05 +1200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 5 May 2014 14:46:56 +0000 (07:46 -0700)
commit2145e15e0557a01b9195d1c7199a1b92cb9be81f
tree5c9f4d9d23feb63d2a1eef1ec56a4f1138c973d8
parentef87dbe7614341c2e7bfe8d32fcb7028cc97442c
floppy: don't write kernel-only members to FDRAWCMD ioctl output

Do not leak kernel-only floppy_raw_cmd structure members to userspace.
This includes the linked-list pointer and the pointer to the allocated
DMA space.

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