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

From: Gustavo A. R. Silva
Date: Fri Mar 29 2019 - 11:50:49 EST


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(-)

--
2.21.0