libceph: check kstrndup() return value
authorChengguang Xu <cgxu519@icloud.com>
Fri, 26 Jan 2018 06:54:43 +0000 (14:54 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 29 Jan 2018 17:36:12 +0000 (18:36 +0100)
commitaffff07739392920d3d2095212c72af220481b95
tree87fc485fb0897e6c97e191b01f9e0885a86d2276
parente30ee58121e34831b9665934d70dbc72ab0fe2fb
libceph: check kstrndup() return value

Should check result of kstrndup() in case of memory allocation failure.

Signed-off-by: Chengguang Xu <cgxu519@icloud.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/ceph_common.c