]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: kstrdup() memory handling
authorSanidhya Kashyap <sanidhya.gatech@gmail.com>
Sat, 21 Mar 2015 16:54:58 +0000 (12:54 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 20 Apr 2015 15:55:34 +0000 (18:55 +0300)
commit6b30c0b5055938f38c3894950bac393777c9ddb7
tree644078c1ab0c063382210f3d0b43a239070b1364
parenta90c01d6cb06b7981dabc9b6f083cd6a2e661949
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>
fs/ceph/dir.c
fs/ceph/super.c
fs/ceph/xattr.c