diff options
Diffstat (limited to 'include/linux/kref.h')
-rw-r--r-- | include/linux/kref.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kref.h b/include/linux/kref.h index e15828fd71f1..62f0a84ae94e 100644 --- a/include/linux/kref.h +++ b/include/linux/kref.h | |||
@@ -133,6 +133,6 @@ static inline int kref_put_mutex(struct kref *kref, | |||
133 | */ | 133 | */ |
134 | static inline int __must_check kref_get_unless_zero(struct kref *kref) | 134 | static inline int __must_check kref_get_unless_zero(struct kref *kref) |
135 | { | 135 | { |
136 | return atomic_add_unless(&kref->refcount, 1, 0); | 136 | return atomic_inc_not_zero(&kref->refcount); |
137 | } | 137 | } |
138 | #endif /* _KREF_H_ */ | 138 | #endif /* _KREF_H_ */ |