]> www.infradead.org Git - users/sagi/libnvme.git/commit
ioctl: fix RAE bit on last Get Log Page command
authorCaleb Sander <csander@purestorage.com>
Fri, 12 May 2023 15:43:22 +0000 (09:43 -0600)
committerDaniel Wagner <wagi@monom.org>
Mon, 15 May 2023 15:06:29 +0000 (17:06 +0200)
commit777b52152f8137048b72edc12ad2ae998df4c30a
tree06183a4d6d6e799a3c4a4cdae761572b59bec0e5
parent4204cb3c79219926f750ede2d7e8b23a3852e72d
ioctl: fix RAE bit on last Get Log Page command

If nvme_get_log_page() requires multiple Get Log Page commands
because the total log length exceeds the transfer length,
args->rae is overwritten, causing the RAE bit to be set in all commands.
Retrieve the value of args->rae before overwriting it
so the RAE bit is set as requested in the last command.

Fixes: c23dbd4 ("linux: Change nvme_get_log_page to use nvme_get_log_args parm")
Signed-off-by: Caleb Sander <csander@purestorage.com>
src/nvme/ioctl.c