Skip to content
Commit c22e853a authored by Wei Yongjun's avatar Wei Yongjun Committed by Ilya Dryomov
Browse files

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: 19079203 ('libceph: support for sending notifies')
Signed-off-by: default avatarWei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 29b4817d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment