]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: do not pr_err for the duplicated node in transport rhlist
authorXin Long <lucien.xin@gmail.com>
Mon, 12 Feb 2018 10:29:06 +0000 (18:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Feb 2018 16:39:32 +0000 (11:39 -0500)
commitd988c7f1072634694217797fc6e74568b26a4ea5
treea3600d7dc1ec6003b029c0845bc4db9a87a506b7
parentac5edf7956389c015bcfac2bd348a8af12c49253
sctp: do not pr_err for the duplicated node in transport rhlist

The pr_err in sctp_hash_transport was supposed to report a sctp bug
for using rhashtable/rhlist.

The err '-EEXIST' introduced in Commit aee8031a55c1 ("sctp: check
duplicate node before inserting a new transport") doesn't belong
to that case.

So just return -EEXIST back without pr_err any kmsg.

Fixes: aee8031a55c1 ("sctp: check duplicate node before inserting a new transport")
Reported-by: Wei Chen <weichen@redhat.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/input.c