Extract the slice from the zeroth swap device instead of assuming
authorguenther <guenther@openbsd.org>
Fri, 7 Jan 2022 02:26:53 +0000 (02:26 +0000)
committerguenther <guenther@openbsd.org>
Fri, 7 Jan 2022 02:26:53 +0000 (02:26 +0000)
commit3fed8fd5e758c6f38637bc27240b81cee0599d72
tree9bb06f20fe08d470a329bdf2ccc89e4c3adb8d7e
parent05388c333a6143e5da4ca6a8c29d8ba02d93ff98
Extract the slice from the zeroth swap device instead of assuming
it's the 'b' slice and (sanity) check against the partition count.
Also, make the "is union hibernate_info too large?" a compile time
check.

ok deraadt@
sys/kern/subr_hibernate.c