]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
qed: fix assignment of n_rq_elems to incorrect params field
authorColin Ian King <colin.king@canonical.com>
Mon, 27 Jul 2020 14:17:12 +0000 (15:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2020 19:46:28 +0000 (12:46 -0700)
commit3540669761b8a26cd5a4ffb9b6c737bc8b941f00
tree5fa768fd2c366b6417ef276122bf5002f4534de4
parent86f968a09810b5eb72a88bebac3ff4e0a6154ca5
qed: fix assignment of n_rq_elems to incorrect params field

Currently n_rq_elems is being assigned to params.elem_size instead of the
field params.num_elems.  Coverity is detecting this as a double assingment
to params.elem_size and reporting this as an usused value on the first
assignment.  Fix this.

Addresses-Coverity: ("Unused value")
Fixes: b6db3f71c976 ("qed: simplify chain allocation with init params struct")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Alexander Lobakin <alobakin@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/qedr/verbs.c