X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=net%2Fceph%2Fosd_client.c;h=a97e7b506612b4255f4b99de76d74c46a1b3896d;hb=f31494bd05b06b0cdb4da6aebe92eaafab970df6;hp=b5ec09612ff71daeb1b95ed4b6f939a172cc7545;hpb=fdbdfefbabefcdf3f57560163b43fdc4cf95eb2f;p=deliverable%2Flinux.git diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index b5ec09612ff7..a97e7b506612 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c @@ -4220,7 +4220,7 @@ static struct ceph_msg *alloc_msg_with_page_vector(struct ceph_msg_header *hdr) pages = ceph_alloc_page_vector(calc_pages_for(0, data_len), GFP_NOIO); - if (!pages) { + if (IS_ERR(pages)) { ceph_msg_put(m); return NULL; }