Don't do math on KVA to get the required slot offset since that could
authormglocker <mglocker@openbsd.org>
Thu, 9 May 2024 08:12:22 +0000 (08:12 +0000)
committermglocker <mglocker@openbsd.org>
Thu, 9 May 2024 08:12:22 +0000 (08:12 +0000)
commitb3b05a1043d8c71f30f44ffcab9ce323d86798bb
tree19014ec008726d5cd42e77f9d721fb3d2303e305
parentde15c084644304df579e10b99890da47ee6aec93
Don't do math on KVA to get the required slot offset since that could
cause invalid pointers depending on the compiler interpretation of
(void *).  Instead work with the structure pointer itself.

Proposed by dlg@
sys/dev/ic/ufshci.c