Commit 5c498950 authored by Luis Henriques's avatar Luis Henriques Committed by Ilya Dryomov
Browse files

libceph: allow ceph_buffer_put() to receive a NULL ceph_buffer

parent d1abaeb3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ static inline struct ceph_buffer *ceph_buffer_get(struct ceph_buffer *b)

static inline void ceph_buffer_put(struct ceph_buffer *b)
{
	if (b)
		kref_put(&b->kref, ceph_buffer_release);
}