[PATCH] uml: fix off-by-one bug in VM file creation
authorJeff Dike <jdike@addtoit.com>
Fri, 30 Jun 2006 08:55:55 +0000 (01:55 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 30 Jun 2006 18:25:37 +0000 (11:25 -0700)
commit190f4939222b8c07cd62a20e1ce0c7a97fffde99
treef3de1035774a1c6358231903d847f1313db7bf0b
parentc2b7a4bb30008dc256d63802e02b6fb950958443
[PATCH] uml: fix off-by-one bug in VM file creation

Fix an off-by-one bug in temp file creation.  Seeking to the desired length
and writing a byte resulted in the file being one byte longer than expected.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/os-Linux/mem.c