Commit 6bd4c9f3 authored by Andrew Morton's avatar Andrew Morton Committed by Dave Jones

[PATCH] memleak in fs/nfs/inode.c::nfs_get_sb()

Patch from Oleg Drokin <green@namesys.com>

   There is trivial memleak on error exit path in nfs get_sb function.
parent 56646aa2
......@@ -1231,6 +1231,7 @@ static struct super_block *nfs_get_sb(struct file_system_type *fs_type,
if (root->size > sizeof(root->data)) {
printk("nfs_get_sb: invalid root filehandle\n");
kfree(server);
return ERR_PTR(-EINVAL);
}
/* We now require that the mount process passes the remote address */
......
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