]> 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>
Thu, 13 Jun 2013 15:46:18 +0000 (08:46 -0700)
commit12fb333ad7ff3a083dbf6b56597b8d75e449e7f0
treedd991a0a627fbf11f91f8a8c88bd604df05f4289
parent8d3229e436ce5697667cc95b0390afa1a2c2c3af
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