]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitf6e103f65e5e313a02519c1f6cdd493ae573bc3c
treef3de1035774a1c6358231903d847f1313db7bf0b
parent2ea0445eb5bc51748c32a0c4dc41d285d0645cea
[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