]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: fix the missing put_user when dumping transport thresholds
authorXin Long <lucien.xin@gmail.com>
Mon, 9 Sep 2019 07:33:29 +0000 (15:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Sep 2019 17:32:28 +0000 (18:32 +0100)
commita6a1beb36acc1a892ce4992a8c7d5e54d85da6a1
tree123418cdb123b6ea9efab1a133e1002b81de2380
parent16a3353b58e6b43bf218f8e326053ac5feff5bf8
sctp: fix the missing put_user when dumping transport thresholds

This issue causes SCTP_PEER_ADDR_THLDS sockopt not to be able to dump
a transport thresholds info.

Fix it by adding 'goto' put_user in sctp_getsockopt_paddr_thresholds.

Fixes: ba4662b8002b ("sctp: add SCTP_FUTURE_ASSOC for SCTP_PEER_ADDR_THLDS sockopt")
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/socket.c