diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-06-04 14:14:55 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-06-04 15:21:45 -0700 |
commit | 1da083c9b23dafd6bcb08dcfec443e66e90efff0 (patch) | |
tree | 2514790b650c125bf29715b01e16ccbb4206e820 /security | |
parent | 2e94de8acbe524d919f1ea8807913d7b005e1578 (diff) | |
download | linux-3.10-1da083c9b23dafd6bcb08dcfec443e66e90efff0.tar.gz linux-3.10-1da083c9b23dafd6bcb08dcfec443e66e90efff0.tar.bz2 linux-3.10-1da083c9b23dafd6bcb08dcfec443e66e90efff0.zip |
flat: fix unmap len in load error path
The data chunk is mmaped with 'len' which remains unchanged, so use that
when unmapping in the error path rather than trying to recalculate (and
incorrectly so) the value used originally.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: David McCullough <davidm@snapgear.com>
Acked-by: Greg Ungerer <gerg@uclinux.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions