https://github.com/torvalds/linux
Revision 4d59e59cf45046fe1263a935f8abc418bb61215c authored by Ido Schimmel on 21 May 2020, 11:46:17 UTC, committed by David S. Miller on 22 May 2020, 23:05:42 UTC
The variable is used by log_test() to check if the test case completely successfully or not. In case it is not initialized at the start of a test case, it is possible for the test case to fail despite not encountering any errors. Example: ``` ... TEST: Trap group statistics [ OK ] TEST: Trap policer [FAIL] Policer drop counter was not incremented TEST: Trap policer binding [FAIL] Policer drop counter was not incremented ``` Failure of trap_policer_test() caused trap_policer_bind_test() to fail as well. Fix by adding missing initialization of the variable. Fixes: 5fbff58e27a1 ("selftests: netdevsim: Add test cases for devlink-trap policers") Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent be43224
Tip revision: 4d59e59cf45046fe1263a935f8abc418bb61215c authored by Ido Schimmel on 21 May 2020, 11:46:17 UTC
selftests: netdevsim: Always initialize 'RET' variable
selftests: netdevsim: Always initialize 'RET' variable
Tip revision: 4d59e59
File | Mode | Size |
---|---|---|
adi | ||
amd | ||
atmel | ||
au1x | ||
bcm | ||
cirrus | ||
codecs | ||
dwc | ||
fsl | ||
generic | ||
hisilicon | ||
img | ||
intel | ||
jz4740 | ||
kirkwood | ||
mediatek | ||
meson | ||
mxs | ||
pxa | ||
qcom | ||
rockchip | ||
samsung | ||
sh | ||
sirf | ||
sof | ||
spear | ||
sprd | ||
sti | ||
stm | ||
sunxi | ||
tegra | ||
ti | ||
txx9 | ||
uniphier | ||
ux500 | ||
xilinx | ||
xtensa | ||
zte | ||
Kconfig | -rw-r--r-- | 2.2 KB |
Makefile | -rw-r--r-- | 1.8 KB |
soc-ac97.c | -rw-r--r-- | 10.6 KB |
soc-acpi.c | -rw-r--r-- | 2.5 KB |
soc-component.c | -rw-r--r-- | 13.7 KB |
soc-compress.c | -rw-r--r-- | 23.8 KB |
soc-core.c | -rw-r--r-- | 78.0 KB |
soc-dai.c | -rw-r--r-- | 10.4 KB |
soc-dapm.c | -rw-r--r-- | 121.7 KB |
soc-devres.c | -rw-r--r-- | 2.9 KB |
soc-generic-dmaengine-pcm.c | -rw-r--r-- | 13.6 KB |
soc-io.c | -rw-r--r-- | 5.4 KB |
soc-jack.c | -rw-r--r-- | 12.4 KB |
soc-ops.c | -rw-r--r-- | 25.3 KB |
soc-pcm.c | -rw-r--r-- | 83.0 KB |
soc-topology.c | -rw-r--r-- | 75.9 KB |
soc-utils.c | -rw-r--r-- | 4.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...