summaryrefslogtreecommitdiff
path: root/include/linux/ceph/buffer.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2019-08-26 11:59:57 +0200
committerIngo Molnar <mingo@kernel.org>2019-08-26 11:59:57 +0200
commit8db5957bc736f0fcbe187ab460e5448d82b41c03 (patch)
tree070b560282ddc4a9a86018ccc59b888b6347ece0 /include/linux/ceph/buffer.h
parent49c46457caadb8c170fd841bd8051e03062d9b8b (diff)
parenta55aa89aab90fae7c815b0551b07be37db359d76 (diff)
downloadlwn-8db5957bc736f0fcbe187ab460e5448d82b41c03.tar.gz
lwn-8db5957bc736f0fcbe187ab460e5448d82b41c03.zip
Merge tag 'v5.3-rc6' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/ceph/buffer.h')
-rw-r--r--include/linux/ceph/buffer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/ceph/buffer.h b/include/linux/ceph/buffer.h
index 5e58bb29b1a3..11cdc7c60480 100644
--- a/include/linux/ceph/buffer.h
+++ b/include/linux/ceph/buffer.h
@@ -30,7 +30,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);