]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ceph: improve error handling in ceph_mdsmap_decode
authorEmil Goode <emilgoode@gmail.com>
Tue, 28 May 2013 14:59:00 +0000 (16:59 +0200)
committerSage Weil <sage@inktank.com>
Tue, 28 May 2013 15:53:24 +0000 (08:53 -0700)
commit5c1934953536b340cc2ff1924e0b16a70d2c948a
treedafc5b3d4c4409d727af8ae0f489eb4974b7fb3c
parentcb53a7ee6c6a42a0d8b472eb1d296219def2d877
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: Emil Goode <emilgoode@gmail.com>
Signed-off-by: Sage Weil <sage@inktank.com>
fs/ceph/mdsmap.c