Re: [PATCH] ceph: Check memory allocation result

2018-01-29 Thread Ilya Dryomov
On Fri, Jan 26, 2018 at 7:54 AM, Chengguang Xu wrote: > Should check result of kstrndup() in case of memory allocation failure. > > Signed-off-by: Chengguang Xu > --- > net/ceph/ceph_common.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/net/ceph/ceph_common.c b/net/ceph/ceph_comm

[PATCH] ceph: Check memory allocation result

2018-01-25 Thread Chengguang Xu
Should check result of kstrndup() in case of memory allocation failure. Signed-off-by: Chengguang Xu --- net/ceph/ceph_common.c | 4 1 file changed, 4 insertions(+) diff --git a/net/ceph/ceph_common.c b/net/ceph/ceph_common.c index 5c036d2..1e492ef 100644 --- a/net/ceph/ceph_common.c +++ b