mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] uml: fix hostfs stack corruption
Noted by Oleg Drokin: We initialized an extra slot of struct kstatfs.spare, sometimes causing stack corruption. Signed-off-by: Jeff Dike <[email protected]> Cc: Paolo 'Blaisorblade' Giarrusso <[email protected]> Cc: Oleg Drokin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5f4e8fd08f
commit
86c79cbcee
1 changed files with 0 additions and 1 deletions
|
|
@ -360,7 +360,6 @@ int do_statfs(char *root, long *bsize_out, long long *blocks_out,
|
|||
spare_out[2] = buf.f_spare[2];
|
||||
spare_out[3] = buf.f_spare[3];
|
||||
spare_out[4] = buf.f_spare[4];
|
||||
spare_out[5] = buf.f_spare[5];
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue