diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2019-09-13 07:57:17 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-09-13 07:57:17 -0700 |
| commit | cec46a59f3cc035d44348ffb866aa5d2026f907f (patch) | |
| tree | 7d349c3c8302a15ecd45710daa69846dcd79e41b /include/linux/ceph/buffer.h | |
| parent | f97511b3d6ffdd7b90fab0f25e79b1df5c8b9be2 (diff) | |
| parent | 79fcbddd736bfcc606ccf4555d0879af3b20da26 (diff) | |
Merge "Merge android-4.4.192 (da6d147) into msm-4.4"
Diffstat (limited to 'include/linux/ceph/buffer.h')
| -rw-r--r-- | include/linux/ceph/buffer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/ceph/buffer.h b/include/linux/ceph/buffer.h index 07ca15e76100..dada47a4360f 100644 --- a/include/linux/ceph/buffer.h +++ b/include/linux/ceph/buffer.h @@ -29,7 +29,8 @@ static inline struct ceph_buffer *ceph_buffer_get(struct ceph_buffer *b) static inline void ceph_buffer_put(struct ceph_buffer *b) { - kref_put(&b->kref, ceph_buffer_release); + if (b) + kref_put(&b->kref, ceph_buffer_release); } extern int ceph_decode_buffer(struct ceph_buffer **b, void **p, void *end); |
