]> www.infradead.org Git - users/sagi/libnvme.git/commit
mi: implement length and offset alignment checks in admin_xfer()
authorJeremy Kerr <jk@codeconstruct.com.au>
Mon, 3 Jul 2023 07:55:04 +0000 (15:55 +0800)
committerDaniel Wagner <wagi@monom.org>
Thu, 20 Jul 2023 08:40:38 +0000 (10:40 +0200)
commitac95df01ce6c8b729095c36073e4d54c3d26bc5f
tree7613b0877cd4384e143423a822864bf2de8004bb
parenta5ce0579608dad9eeb59ad5815ee704e507fe9d6
mi: implement length and offset alignment checks in admin_xfer()

We're about to relax some alignment requirements in the generic
(internal) nvme_mi_submit function. To ensure that the raw admin
interface continues to enfore the required alignment on DOFST and DLEN
fields, implement checks in the Admin command interface.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
src/nvme/mi.c