diff options
author | Peter Zijlstra <peterz@infradead.org> | 2016-11-14 18:06:19 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-02-10 09:04:19 +0100 |
commit | f405df5de3170c00e5c54f8b7cf4766044a032ba (patch) | |
tree | 62a9ba9a77852bf103b638a1b580919f0e58ffc4 /drivers/hwmon/ltc4215.c | |
parent | 0754445d71c37a7afd4f0790a9be4cf53c1b8cc4 (diff) | |
download | op-kernel-dev-f405df5de3170c00e5c54f8b7cf4766044a032ba.zip op-kernel-dev-f405df5de3170c00e5c54f8b7cf4766044a032ba.tar.gz |
refcount_t: Introduce a special purpose refcount type
Provide refcount_t, an atomic_t like primitive built just for
refcounting.
It provides saturation semantics such that overflow becomes impossible
and thereby 'spurious' use-after-free is avoided.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/hwmon/ltc4215.c')
0 files changed, 0 insertions, 0 deletions