libceph: handle OSD op ceph_pagelist_append() errors
authorDavid Disseldorp <ddiss@suse.de>
Wed, 3 Jul 2019 15:59:20 +0000 (17:59 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Sep 2019 10:06:25 +0000 (12:06 +0200)
commit4766815b1179dbe4fe263a5f95795710e29276e2
tree6c5722d93697f56b7a80771ecaf2dc03fde583c2
parent3e8730fac951bf89b3adbb040445bb688af1fd22
libceph: handle OSD op ceph_pagelist_append() errors

osd_req_op_cls_init() and osd_req_op_xattr_init() currently propagate
ceph_pagelist_alloc() ENOMEM errors but ignore ceph_pagelist_append()
memory allocation failures. Add these checks and cleanup on error.

Signed-off-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/osd_client.c