[MTD] mtdchar: Fix MEMGETOOBSEL and ECCGETLAYOUT ioctls
authorRicard Wanderlöf <ricard.wanderlof@axis.com>
Tue, 17 Oct 2006 15:27:11 +0000 (17:27 +0200)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 21 Oct 2006 15:33:17 +0000 (16:33 +0100)
1. The ECCGETLAYOUT ioctl copy_to_user() call has a superfluous '&'
causing the resulting information to be garbage rather than the intended
mtd->ecclayout.

2. The MEMGETOOBSEL misses copying mtd->ecclayout->eccbytes so the
resulting field of the returned structure contains garbage.

Signed-off-by: Ricard Wanderlöf <ricardw@axis.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>

No differences found