Skip to content

libmlx5: fix various coverity/clang issues

Jarod Wilson linux-rdma 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6fix size in malloc of qp->sq.wr_datasrc/verbs.c+1 -11 reply
2/6fix coverity buffer overrun warningsrc/qp.c+1 -13 replies
3/6fix buffer overrun copying inline headersrc/wqe.h+1 -12 replies
4/6fix check of mlx5_store_uidx returnsrc/verbs.c+4 -21 reply
5/6fix alloc of mlx5_resource tablesrc/mlx5.c+1 -11 reply
6/6fix undefined uuar_index value assignmentsrc/verbs.c+4 -24 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH libmlx5 0/6] libmlx5: fix various coverity/clang issues

Part of Red Hat's release process involves running packages through a scan in coverity, and inspecting anything that pops up. Well, with version 1.2.1, coverity was a bit chatty, so I started investigating, and have attempted to come up with fixes for at least most of what it reported.

Jarod Wilson (6):
fix size in malloc of qp->sq.wr_data
fix coverity buffer overrun warning
fix buffer overrun copying inline header
fix check of mlx5_store_uidx return
fix alloc of mlx5_resource table
fix undefined uuar_index value assignment

CC Yishai Hadas <yishaih-VPRAkNaXOzVWk0Htik3J/[email protected]>
 src/mlx5.c  |  2 +-
 src/qp.c    |  2 +-
 src/verbs.c | 14 +++++++++-----
 src/wqe.h   |  2 +-
 4 files changed, 12 insertions(+), 8 deletions(-)
Signature · 6 lines
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html