Skip to content

cxgb3/l2t: Fix undefined behaviour and use struct_size() helper

Gustavo A. R. Silva lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cxgb3/l2t: Fix undefined behaviourdrivers/net/ethernet/chelsio/cxgb3/l2t.h+1 -10 replies
2/2cxgb3/l2t: Use struct_size() in kvzalloc()drivers/net/ethernet/chelsio/cxgb3/l2t.c+2 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2 net-next] cxgb3/l2t: Fix undefined behaviour and use struct_size() helper

Hi all,

This patchset aims to fix an undefined behaviour when using a zero-sized array and, add the use of the struct_size() helper in kvzalloc().

You might consider the first patch in this series for stable.

More details in the commit logs.

Thanks

Gustavo A. R. Silva (2):
cxgb3/l2t: Fix undefined behaviour
cxgb3/l2t: Use struct_size() in kvzalloc()

 drivers/net/ethernet/chelsio/cxgb3/l2t.c | 4 ++--
 drivers/net/ethernet/chelsio/cxgb3/l2t.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.21.0