Jan Klemkow wrote: > Hi, > > The diff mainly add sizes to free(9) calls. But, while here fix a > malloc(9) call with the wrong size in sr_ioctl_installboot(). > omi->omi_som is allocated with size of struct sr_meta_crypto, but used > as struct sr_meta_boot later. > > One free(9) with size zero left over in sr_discipline_free(). As, the > allocated size of sd->sd_vol.sv_chunks is not ascertainable here without > larger changes. > > Build and run the kernel for testing.
The change in installboot for the size is suspicious. I would leave that out. Especially if you haven't tested installboot to a crypto softraid. :)