From: Yinghai Lu <yinghai@xxxxxxxxxx> Fix a (small) memory leak in one of the error paths of the NFS mount options parsing code. Reported-by: Yinghai Lu <yinghai@xxxxxxxxxx> Reported-by: Pekka Enberg <penberg@xxxxxxxxxxxxxx> Signed-off-by: Ingo Molnar <mingo@xxxxxxx> Signed-off-by: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx> --- Regression introduced in 2.6.30 by commit a67d18f (NFS: load the rpc/rdma transport module automatically). Please apply to mainline +stable... fs/nfs/super.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/nfs/super.c b/fs/nfs/super.c index a2c18ac..90be551 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -1253,6 +1253,7 @@ static int nfs_parse_mount_options(char *raw, default: dfprintk(MOUNT, "NFS: unrecognized " "transport protocol\n"); + kfree(string); return 0; } break; -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html