This patch fixes a memory leak introduced by commit ba17674fe02909fef049fd4b620a2805bdb8c693.
Spotted by the Coverity checker. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> --- --- linux-2.6/fs/9p/v9fs.c.old 2007-10-19 15:56:06.000000000 +0200 +++ linux-2.6/fs/9p/v9fs.c 2007-10-19 15:57:00.000000000 +0200 @@ -152,26 +152,27 @@ static void v9fs_parse_options(struct v9 case Opt_access: s = match_strdup(&args[0]); v9ses->flags &= ~V9FS_ACCESS_MASK; if (strcmp(s, "user") == 0) v9ses->flags |= V9FS_ACCESS_USER; else if (strcmp(s, "any") == 0) v9ses->flags |= V9FS_ACCESS_ANY; else { v9ses->flags |= V9FS_ACCESS_SINGLE; v9ses->uid = simple_strtol(s, &e, 10); if (*e != '\0') v9ses->uid = ~0; } + kfree(s); break; default: continue; } } } /** * v9fs_session_init - initialize session * @v9ses: session information structure * @dev_name: device being mounted * @data: options - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/