HomeFreeBSD

nvme_ctrlr_linux_passthru_cmd: correct size of upages_small array

Description

nvme_ctrlr_linux_passthru_cmd: correct size of upages_small array

The size broke when upages was converted from array to double pointer.

Reported by: gcc -Wsizeof-pointer-div
Reviewed by: imp
Fixes: 82ff1c334b97 ("nvme: Allow larger user request sizes")
Differential Revision: https://reviews.freebsd.org/D56368

Details

Provenance
rlibbyAuthored on Sun, Apr 12, 11:39 PM
Reviewer
rG82ff1c334b97: nvme: Allow larger user request sizes
Differential Revision
D56368: nvme_ctrlr_linux_passthru_cmd: correct size of upages_small array
Parents
rG151a1eab3b78: tcp: fix !INVARIANTS build
Branches
Unknown
Tags
Unknown