]> git.baikalelectronics.ru Git - kernel.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>
Mon, 1 Jul 2013 16:52:02 +0000 (09:52 -0700)
commit2c4d0ec32f8749e0959363e0edf069710c242243
tree66a2ae00a8e9e6e619d4722b5c2a0e53380765fd
parent56987b4212335ca872e85df41a2aa859630a3be2
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