VMD: vioscsi - fix large ISO support in Linux
authorccardenas <ccardenas@openbsd.org>
Fri, 19 Jan 2018 14:23:52 +0000 (14:23 +0000)
committerccardenas <ccardenas@openbsd.org>
Fri, 19 Jan 2018 14:23:52 +0000 (14:23 +0000)
commita9eba918fb3fb11057e558a70ceebed5d42dfa45
tree3622c4bee0fddc3a36c1e6603d0e1d71dc5be054
parent1d38689dbbb026d00003a4af72a0387148a31a7c
VMD: vioscsi - fix large ISO support in Linux

Check if n_blocks is less than UINT32_MAX and not the image size
in various places (READ_CAPACITY_* and GET_CONFIGURATION).

ok mlarkin@ and dlg@
usr.sbin/vmd/vioscsi.c