[PATCH 11/35] perf cpumap: Convert cpu_map.refcnt from atomic_t to refcount_t

2017-03-06 Thread Arnaldo Carvalho de Melo
From: Elena Reshetova The 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. Signed-off-by:

[PATCH 11/35] perf cpumap: Convert cpu_map.refcnt from atomic_t to refcount_t

2017-03-06 Thread Arnaldo Carvalho de Melo
From: Elena Reshetova The 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. Signed-off-by: Elena Reshetova Signed-off-by: