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)
commitfe943d50425b6646606f8ef1ef8b8d4975fdbee2
tree4e2ecd6eb4ba41fa02a7761d99348e13c9ad5212
parent29dcea88779c856c7dc92040a0c01233263101d4
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