]> git.baikalelectronics.ru Git - kernel.git/commit
socket: fix compat SO_RCVTIMEO_NEW/SO_SNDTIMEO_NEW
authorArnd Bergmann <arnd@arndb.de>
Tue, 16 Apr 2019 20:31:14 +0000 (22:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Apr 2019 04:52:22 +0000 (21:52 -0700)
commit078722245d90fb8b8bbf27a1990afec98026679e
tree3384dd702aef59c433480ee1dd8c11d05b15ded9
parent96649719b61124ce7104e1b4a390bceb3d3afcd3
socket: fix compat SO_RCVTIMEO_NEW/SO_SNDTIMEO_NEW

It looks like the new socket options only work correctly
for native execution, but in case of compat mode fall back
to the old behavior as we ignore the 'old_timeval' flag.

Rework so we treat SO_RCVTIMEO_NEW/SO_SNDTIMEO_NEW the
same way in compat and native 32-bit mode.

Cc: Deepa Dinamani <deepa.kernel@gmail.com>
Fixes: ca8198f4f80e ("sock: Add SO_RCVTIMEO_NEW and SO_SNDTIMEO_NEW")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Deepa Dinamani <deepa.kernel@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c