diff options
author | Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> | 2006-04-11 01:53:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-11 09:18:35 -0400 |
commit | cda402b283c34a24b091f78eee116963e9494762 (patch) | |
tree | a79d720e9ad5fe65b3488f10dfbaaa24cb0b9162 /arch | |
parent | 60baa1583959e8b15e2823ef9e1cc00fd7ea929c (diff) |
[PATCH] uml: make 64-bit COW files compatible with 32-bit ones
This is the minimal fix to make 64-bit UML binaries create 32-bit compatible
COW files and read them. I've indeed tested that current code doesn't do this
- the code gets SIGFPE for a division by a value read at the wrong place,
where 0 is found.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/um/drivers/cow_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/cow_user.c b/arch/um/drivers/cow_user.c index 61951b721268..afdf1ea0f557 100644 --- a/arch/um/drivers/cow_user.c +++ b/arch/um/drivers/cow_user.c | |||
@@ -75,7 +75,7 @@ struct cow_header_v3 { | |||
75 | __u32 alignment; | 75 | __u32 alignment; |
76 | __u32 cow_format; | 76 | __u32 cow_format; |
77 | char backing_file[PATH_LEN_V3]; | 77 | char backing_file[PATH_LEN_V3]; |
78 | }; | 78 | } __attribute__((packed)); |
79 | 79 | ||
80 | /* COW format definitions - for now, we have only the usual COW bitmap */ | 80 | /* COW format definitions - for now, we have only the usual COW bitmap */ |
81 | #define COW_BITMAP 0 | 81 | #define COW_BITMAP 0 |