aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/assembler.h
diff options
context:
space:
mode:
authorIdo Schimmel <[email protected]>2020-03-26 14:17:33 +0000
committerDavid S. Miller <[email protected]>2020-03-26 19:00:45 +0000
commitf6bf1bafdc2152bb22aff3a4e947f2441a1d49e2 (patch)
treea97018f01d8455c003603762e61fd249b98a0e5e /arch/arm/include/asm/assembler.h
parentqlcnic: Fix bad kzalloc null test (diff)
downloadkernel-f6bf1bafdc2152bb22aff3a4e947f2441a1d49e2.tar.gz
kernel-f6bf1bafdc2152bb22aff3a4e947f2441a1d49e2.zip
mlxsw: spectrum_mr: Fix list iteration in error path
list_for_each_entry_from_reverse() iterates backwards over the list from the current position, but in the error path we should start from the previous position. Fix this by using list_for_each_entry_continue_reverse() instead. This suppresses the following error from coccinelle: drivers/net/ethernet/mellanox/mlxsw//spectrum_mr.c:655:34-38: ERROR: invalid reference to the index variable of the iterator on line 636 Fixes: c011ec1bbfd6 ("mlxsw: spectrum: Add the multicast routing offloading logic") Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'arch/arm/include/asm/assembler.h')
0 files changed, 0 insertions, 0 deletions