]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: add error handling for get_user()
authorUrsula Braun <ursula.braun@linux.ibm.com>
Wed, 18 Jul 2018 13:22:50 +0000 (15:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2018 17:58:27 +0000 (10:58 -0700)
commitc8896e6223110dc1e59a544a78931f6be78cc33f
treefb2c0ad4a31a876a05095a431b11375736d0b75d
parent8297cdf76d5b11c5ca273ec612f5f6d354722e3e
net/smc: add error handling for get_user()

For security reasons the return code of get_user() should always be
checked.

Fixes: fe67f6d0cc871 ("net/smc: sockopts TCP_NODELAY and TCP_CORK")
Reported-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c