Commit 1b387f80 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] nfsd-as-fs NULL ptr fix

It needs the following patch
parent 11aec25f
...@@ -223,9 +223,9 @@ static ssize_t write_getfs(struct file *file, const char *buf, size_t size) ...@@ -223,9 +223,9 @@ static ssize_t write_getfs(struct file *file, const char *buf, size_t size)
if (data.gd_maxlen > NFS3_FHSIZE) if (data.gd_maxlen > NFS3_FHSIZE)
data.gd_maxlen = NFS3_FHSIZE; data.gd_maxlen = NFS3_FHSIZE;
res = kmalloc(sizeof(struct knfsd_fh), GFP_KERNEL); res = kmalloc(sizeof(struct knfsd_fh), GFP_KERNEL);
memset(res, 0, sizeof(struct knfsd_fh));
if (!res) if (!res)
return -ENOMEM; return -ENOMEM;
memset(res, 0, sizeof(struct knfsd_fh));
exp_readlock(); exp_readlock();
if (!(clp = exp_getclient(sin))) if (!(clp = exp_getclient(sin)))
err = -EPERM; err = -EPERM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment