ceph: kstrdup() memory handling

Currently, there is no check for the kstrdup() for r_path2,
r_path1 and snapdir_name as various locations as there is a
possibility of failure during memory pressure. Therefore,
returning ENOMEM where the checks have been missed.

Signed-off-by: Sanidhya Kashyap <sanidhya.gatech@gmail.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
Sanidhya Kashyap 2015-03-21 12:54:58 -04:00 • committed by Ilya Dryomov
commit a149bb9a28
3 changed files with 44 additions and 13 deletions