commit | c22e853a2ed19321d00c1eae339ffdc4f5e7757e | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyj.lk@gmail.com> | Sat Jul 30 00:37:57 2016 +0000 |
committer | Ilya Dryomov <idryomov@gmail.com> | Mon Aug 08 21:41:41 2016 +0200 |
tree | e490b26498c790a9dc06be590a974ea9dc231eb0 | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc [diff] |
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: 1907920324f1 ('libceph: support for sending notifies') Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>