5abe8cb6de
On a FreeNAS mini XL, with geli encrypted drives the loader crashed in geli_read(). When we iterate over the list of disks and allocate the zfsdsk structures we don’t zero out the gdev pointer. In one case that resulted in geli_read() (called on the bogus pointer) dividing by zero. Use calloc() to ensure the zfsdsk structure is always zeroed, so the pointer is initialised to NULL. As a side benefit it gets rid of one #ifdef LOADER_GELI_SUPPORT. |
||
---|---|---|
.. | ||
boot0 | ||
boot0sio | ||
boot2 | ||
btx | ||
cdboot | ||
common | ||
gptboot | ||
gptzfsboot | ||
isoboot | ||
kgzldr | ||
libfirewire | ||
libi386 | ||
loader | ||
mbr | ||
pmbr | ||
pxeldr | ||
zfsboot | ||
boot.ldscript | ||
Makefile | ||
Makefile.inc |