kp 8a62612c11 zfsboot: Fix startup crash
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.
2018-08-05 11:15:28 +00:00
..
2018-02-26 03:16:47 +00:00
2018-04-27 22:15:18 +00:00
2018-03-13 16:33:00 +00:00
2018-08-05 11:15:28 +00:00
2018-06-27 19:29:15 +00:00
2018-08-01 20:08:20 +00:00
2018-07-25 16:07:35 +00:00
2018-07-08 07:42:49 +00:00