Re: [PATCH] nfs: kstrdup() memory handling

2015-03-25 Thread Christoph Hellwig
On Sat, Mar 21, 2015 at 01:07:28PM -0400, Sanidhya Kashyap wrote: > index 86d6214..08bf1f1 100644 > --- a/fs/nfs/nfs4client.c > +++ b/fs/nfs/nfs4client.c > @@ -1217,8 +1217,15 @@ int nfs4_update_server(struct nfs_server *server, > const char *hostname, > goto out; > } > > -

[PATCH] nfs: kstrdup() memory handling

2015-03-21 Thread Sanidhya Kashyap
The following patch tries to correctly handle the memory failure even for kstrdup() during memory pressure. Therefore, putting extra check for ENOMEM in places where the kstrdup() has not been validated. Further more checks have been added which called the functions nfs4_init_nonuniform_client_stri