]> git.baikalelectronics.ru Git - kernel.git/commit
net: add debug atomic_inc_not_zero() in dst_hold()
authorWei Wang <weiwan@google.com>
Sat, 17 Jun 2017 17:42:44 +0000 (10:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Jun 2017 02:54:01 +0000 (22:54 -0400)
commit18e0ee22b5dd1adfcab4c3964bc3c968e04ce3c5
tree84d1cd1b7a6b3990749e2423a6a2a38a2478acd7
parent7fcc81f085fa6bbb55032c49db4b57b7b48116b6
net: add debug atomic_inc_not_zero() in dst_hold()

This patch is meant to add a debug warning on the situation where dst is
being held during its destroy phase. This could potentially cause double
free issue on the dst.

Signed-off-by: Wei Wang <weiwan@google.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dst.h