]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: Use correct data buffer size
authorDaniel Wagner <dwagner@suse.de>
Tue, 6 Jun 2023 15:21:55 +0000 (17:21 +0200)
committerDaniel Wagner <wagi@monom.org>
Tue, 6 Jun 2023 16:04:39 +0000 (18:04 +0200)
commita6ef86deb41003f02b995889528ecf9e2fac7379
treed1f6317bc26e85762b7c312b830d1a87ab07f863
parentea2765aaa046adc4becd22296969aebd99ab8d54
nvme: Use correct data buffer size

The submit_io command is using the buffer size provided by the
user. But this size argument might be updated and the correct length
for the buffer is buffer_size. Thus use this value and not the
initial length.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
nvme.c