]> git.itanic.dy.fi Git - linux-stable/commit
selftests: pmtu: properly redirect stderr to /dev/null
authorSabrina Dubroca <sd@queasysnail.net>
Mon, 17 Sep 2018 13:30:06 +0000 (15:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Oct 2018 07:47:07 +0000 (09:47 +0200)
commit66acb86c090592eae29ffbec5aa8636411914dbf
treeeb15c78222065abad0dbe957453378757d7cb9e3
parent6a08cbb10aac20eb9ccc831407dafdd1fa4035c0
selftests: pmtu: properly redirect stderr to /dev/null

[ Upstream commit 0a286afee5a1e8dca86d824209dbd3200294f86f ]

The cleanup function uses "$CMD 2 > /dev/null", which doesn't actually
send stderr to /dev/null, so when the netns doesn't exist, the error
message is shown. Use "2> /dev/null" instead, so that those messages
disappear, as was intended.

Fixes: d1f1b9cbf34c ("selftests: net: Introduce first PMTU test")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/net/pmtu.sh