]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: fix return value check in alloc_msg_with_page_vector()
authorWei Yongjun <weiyj.lk@gmail.com>
Sat, 30 Jul 2016 00:37:57 +0000 (00:37 +0000)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Aug 2016 19:41:41 +0000 (21:41 +0200)
commit734156e1a0fc1698f212ac245e9fd69bed5a65c1
treee490b26498c790a9dc06be590a974ea9dc231eb0
parentb482605f7939bd4035b2d11a7952dc3da5821c6d
libceph: fix return value check in alloc_msg_with_page_vector()

In case of error, the function ceph_alloc_page_vector() returns
ERR_PTR() and never returns NULL. The NULL test in the return value
check should be replaced with IS_ERR().

Fixes: c60a7f840dd3 ('libceph: support for sending notifies')
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/osd_client.c