net/smc: add receive timeout check
authorHans Wippel <hwippel@linux.vnet.ibm.com>
Thu, 21 Sep 2017 07:16:27 +0000 (09:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Sep 2017 22:31:02 +0000 (15:31 -0700)
commit846e344eb7229018457d6d6fc1ab0cc0a167692f
tree9ab133d4307f2d273a571565d62e2dd7695c4e81
parent09579ac803a3638344b8544b5940793d5358673e
net/smc: add receive timeout check

The SMC receive function currently lacks a timeout check under the
condition that no data were received and no data are available. This
patch adds such a check.

Signed-off-by: Hans Wippel <hwippel@linux.vnet.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_rx.c