hdt: Move ~162K byte data object from the stack to the bss
authorMatt Fleming <matt.fleming@intel.com>
Wed, 23 Jan 2013 13:24:36 +0000 (13:24 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Wed, 23 Jan 2013 15:05:28 +0000 (15:05 +0000)
commitb3dd49f09630ec1338d2ee987f794d49ca01c227
treea622cd2e74f403642a7dd2c30a949780081606e8
parent4027dbf9df88e3feaa3744c6622e4ae7cf8ecd6e
hdt: Move ~162K byte data object from the stack to the bss

A struct s_hardware is far too large to be placed onto the stack and
was causing us run past the end of the allocated stack and overwrite
the diskcache, which resulted in apparent file system corruption.

Move this hefty object into the bss.

Cc: Erwan Velu <erwanaliasr1@gmail.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/hdt/hdt.c