summaryrefslogtreecommitdiffstats
path: root/include/linux/of_pdt.h
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior2018-08-22 06:55:31 +0200
committerLinus Torvalds2018-08-22 19:52:46 +0200
commite58dd0de5eadf145895b13451a1fef8ef03946eb (patch)
treef5db856cd6e69abf35e136e8c2666469ac6b51d3 /include/linux/of_pdt.h
parentkernel.h: documentation for roundup() vs round_up() (diff)
downloadkernel-qcow2-linux-e58dd0de5eadf145895b13451a1fef8ef03946eb.tar.gz
kernel-qcow2-linux-e58dd0de5eadf145895b13451a1fef8ef03946eb.tar.xz
kernel-qcow2-linux-e58dd0de5eadf145895b13451a1fef8ef03946eb.zip
bdi: use refcount_t for reference counting instead atomic_t
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This permits avoiding accidental refcounter overflows that might lead to use-after-free situations. Link: http://lkml.kernel.org/r/20180703200141.28415-4-bigeasy@linutronix.de Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Suggested-by: Peter Zijlstra <peterz@infradead.org> Cc: Jens Axboe <axboe@kernel.dk> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/of_pdt.h')
0 files changed, 0 insertions, 0 deletions