]> git.baikalelectronics.ru Git - kernel.git/commit
inet: reqsk_alloc() needs to take care of dead listeners
authorEric Dumazet <edumazet@google.com>
Fri, 1 Apr 2016 15:52:16 +0000 (08:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Apr 2016 02:11:19 +0000 (22:11 -0400)
commit766869ba12a23cbebdc81306db32a5bd77ce7264
tree14db12b0567eaaa34d3d9850645daf8b54e8689f
parent76c7f587730a9605bb1e4b28358f7f9caf041dc4
inet: reqsk_alloc() needs to take care of dead listeners

We'll soon no longer take a refcount on listeners,
so reqsk_alloc() can not assume a listener refcount is not
zero. We need to use atomic_inc_not_zero()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/request_sock.h