diff options
author | David Scidmore <dscidmore@xes-inc.com> | 2007-12-12 00:44:30 +0100 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-01-08 08:46:12 +0100 |
commit | e9d8d48253c50106d85b288939e5227083360863 (patch) | |
tree | 4a0602108bccdc31ebde7306fa1b13734531349d /mm/oom_kill.c | |
parent | UBI: bugfix: do not forget to increment vol_count (diff) | |
download | linux-e9d8d48253c50106d85b288939e5227083360863.tar.xz linux-e9d8d48253c50106d85b288939e5227083360863.zip |
[MTD] mtdchar.c: ioctl always returns 0 as size written for ppc64
"include/linux/mtd/mtd.h" declares "mtd_oob_ops.retlen" as size_t, which
is 64 bits on targets with a 64 bit addressing. The MEMWRITEOOB ioctl
calls copy_to_user() to write it back to "mtd_oob_buf.length", which is
declared in "include/linux/mtd-abi.h" as uint32_t. Since powerpc is a
big endian architecture, this only copies the upper 32 bits of the
address, which is always 0.
Signed-off-by: David Scidmore <dscidmore@xes-inc.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'mm/oom_kill.c')
0 files changed, 0 insertions, 0 deletions