]> 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)
commit136fe198b4d91581377704d3df70c587ad4513c2
treee490b26498c790a9dc06be590a974ea9dc231eb0
parent1372dac0367f9e37512ea4720cf3886bcb42562d
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: 536a8fc07435 ('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