Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d25ade71 authored by Ricard Wanderlöf's avatar Ricard Wanderlöf Committed by David Woodhouse
Browse files

[MTD] mtdchar: Fix MEMGETOOBSEL and ECCGETLAYOUT ioctls



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: default avatarRicard Wanderlöf <ricardw@axis.com>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 42cb1403
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment