diff options
author | 2017-08-31 16:48:22 -0700 | |
---|---|---|
committer | 2017-09-01 20:22:03 -0700 | |
commit | c1d1b437816f0afa99202be3cb650c9d174667bc (patch) | |
tree | 14ee9ec0f2e759bb237b2a010aa56989874cc054 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: prepare (struct ubuf_info)->refcnt conversion (diff) | |
download | wireguard-linux-c1d1b437816f0afa99202be3cb650c9d174667bc.tar.xz wireguard-linux-c1d1b437816f0afa99202be3cb650c9d174667bc.zip |
net: convert (struct ubuf_info)->refcnt to refcount_t
refcount_t type and corresponding API should be
used instead of atomic_t when the variable is used as
a reference counter. This allows to avoid accidental
refcounter overflows that might lead to use-after-free
situations.
v2: added the change in drivers/vhost/net.c as spotted
by Willem.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions