commit | 2a9d6481004215da8e93edb588cf448f2af80303 | [log] [tgz] |
---|---|---|
author | Manfred Spraul <[email protected]> | Tue Aug 21 22:02:04 2018 -0700 |
committer | Linus Torvalds <[email protected]> | Wed Aug 22 10:52:52 2018 -0700 |
tree | 8ce2a97df46ba44963cbc517f58707fc1ee7eb4d | |
parent | 27c331a174614208d0b539019583990967ad9479 [diff] |
ipc/util.c: update return value of ipc_getref from int to bool ipc_getref has still a return value of type "int", matching the atomic_t interface of atomic_inc_not_zero()/atomic_add_unless(). ipc_getref now uses refcount_inc_not_zero, which has a return value of type "bool". Therefore, update the return code to avoid implicit conversions. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Manfred Spraul <[email protected]> Cc: Davidlohr Bueso <[email protected]> Cc: Davidlohr Bueso <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: Herbert Xu <[email protected]> Cc: Kees Cook <[email protected]> Cc: Michael Kerrisk <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>