Skip to content
Commit c213b50b authored by Emil Goode's avatar Emil Goode Committed by Sage Weil
Browse files

ceph: improve error handling in ceph_mdsmap_decode



This patch makes the following improvements to the error handling
in the ceph_mdsmap_decode function:

- Add a NULL check for return value from kcalloc
- Make use of the variable err

Signed-off-by: default avatarEmil Goode <emilgoode@gmail.com>
Signed-off-by: default avatarSage Weil <sage@inktank.com>
parent 912c317d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment