[PATCH 1/2] nvme: add nvme_opcode_str function for all nvme cmd types
Caleb Sander
csander at purestorage.com
Mon Dec 12 08:32:45 PST 2022
On Mon, Dec 12, 2022 at 6:33 AM <amit.engel at dell.com> wrote:
>
> +const unsigned char *nvme_get_fabrics_opcode_str(u8 opcode) {
> + if (opcode < ARRAY_SIZE(nvme_admin_ops) && nvme_fabrics_ops[opcode])
> + return nvme_fabrics_ops[opcode];
Why bounds-check opcode against nvme_admin_ops but access nvme_fabrics_ops?
More information about the Linux-nvme
mailing list