[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080311224204.GA16719@basil.nowhere.org>
Date: Tue, 11 Mar 2008 23:42:04 +0100
From: Andi Kleen <andi@...stfloor.org>
To: akpm@...l.org, wli@...omorphy.com, linux-kernel@...r.kernel.org
Subject: [PATCH] Terminate hugetlbfs mount argument list
Terminate hugetlbfs mount argument list
[2.6.25 candidate I believe]
The match_table_t for the mount arguments in hugetlbfs wasn't
terminated as match_tokens expect. I didn't see a crash just code
audit, but it's still safer to terminate it in case the variables after
that in .data are not NULL.
Signed-off-by: Andi Kleen <ak@...e.de>
Index: linux/fs/hugetlbfs/inode.c
===================================================================
--- linux.orig/fs/hugetlbfs/inode.c
+++ linux/fs/hugetlbfs/inode.c
@@ -63,6 +63,7 @@ static match_table_t tokens = {
{Opt_uid, "uid=%u"},
{Opt_gid, "gid=%u"},
{Opt_err, NULL},
+ {},
};
static void huge_pagevec_release(struct pagevec *pvec)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists