diff options
| author | Ingo Molnar <mingo@kernel.org> | 2019-09-06 08:36:04 +0300 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2019-09-06 08:36:04 +0300 |
| commit | f49dcd1aba4374c56bc77100e2d146884d2238c1 (patch) | |
| tree | ed9751070e6bf58fe4ece8fcf7275563e92c3d67 /include/linux/ceph/buffer.h | |
| parent | 00452ba9fdb5bf6fb5fea1dae5227b4bbed44fc4 (diff) | |
| parent | 089cf7f6ecb266b6a4164919a2e69bd2f938374a (diff) | |
| download | linux-f49dcd1aba4374c56bc77100e2d146884d2238c1.tar.xz | |
Merge tag 'v5.3-rc7' into x86/platform, to refresh the branch
Signed-off-by: Ingo Molnar <mingo@kernel.org>
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 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); |
