aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorRaed Salem <[email protected]>2022-10-26 14:51:50 +0100
committerJakub Kicinski <[email protected]>2022-10-27 11:06:56 -0700
commitd3ecf037569c64490a5cae5a1ac4605f4bedc607 (patch)
treed4a4e925c30c8873b5978b5c8e1d5191899a97e7 /lib/mpi/mpi-sub-ui.c
parentaefb62a9988749703435e941704624949a80a2a9 (diff)
net/mlx5e: Fix macsec coverity issue at rx sa update
The cited commit at update rx sa operation passes object attributes to MACsec object create function without initializing/setting all attributes fields leaving some of them with garbage values, therefore violating the implicit assumption at create object function, which assumes that all input object attributes fields are set. Fix by initializing the object attributes struct to zero, thus leaving unset fields with the legal zero value. Fixes: aae3454e4d4c ("net/mlx5e: Add MACsec offload Rx command support") Signed-off-by: Raed Salem <[email protected]> Reviewed-by: Lior Nahmanson <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions