aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/util.h')
-rw-r--r--ipc/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/util.h b/ipc/util.h
index d05b7085a887..a1cbc3aaf25a 100644
--- a/ipc/util.h
+++ b/ipc/util.h
@@ -195,7 +195,7 @@ static inline void ipc_unlock(struct kern_ipc_perm *perm)
195 */ 195 */
196static inline bool ipc_valid_object(struct kern_ipc_perm *perm) 196static inline bool ipc_valid_object(struct kern_ipc_perm *perm)
197{ 197{
198 return perm->deleted == 0; 198 return !perm->deleted;
199} 199}
200 200
201struct kern_ipc_perm *ipc_obtain_object_check(struct ipc_ids *ids, int id); 201struct kern_ipc_perm *ipc_obtain_object_check(struct ipc_ids *ids, int id);