]> git.baikalelectronics.ru Git - kernel.git/commit
libceph, rbd: add error handling for osd_req_op_cls_init()
authorChengguang Xu <cgxu519@gmx.com>
Thu, 12 Apr 2018 04:04:55 +0000 (12:04 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 4 Jun 2018 18:45:54 +0000 (20:45 +0200)
commitdc277ecd0159405303e33cd34790eaedcf297cf5
tree4e2ecd6eb4ba41fa02a7761d99348e13c9ad5212
parentcbe5cf6c12a702bb61d930a5ea6850606f262fb2
libceph, rbd: add error handling for osd_req_op_cls_init()

Add proper error handling for osd_req_op_cls_init() to replace
BUG_ON statement when failing from memory allocation.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c
include/linux/ceph/osd_client.h
net/ceph/osd_client.c