nfs: Fix nfs_parse_mount_options() kfree() leak

Fix a (small) memory leak in one of the error paths of the NFS mount
options parsing code.

Regression introduced in 2.6.30 by commit a67d18f (NFS: load the
rpc/rdma transport module automatically).

Reported-by: Yinghai Lu <yinghai@kernel.org>
Reported-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Yinghai Lu and committed by Linus Torvalds 4223a4a1 ad396024

+1
+1
fs/nfs/super.c
··· 1253 1253 default: 1254 1254 dfprintk(MOUNT, "NFS: unrecognized " 1255 1255 "transport protocol\n"); 1256 + kfree(string); 1256 1257 return 0; 1257 1258 } 1258 1259 break;