summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/nfsroot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfsroot.c b/fs/nfs/nfsroot.c
index 305ef463bf82..2e43a7b76cd7 100644
--- a/fs/nfs/nfsroot.c
+++ b/fs/nfs/nfsroot.c
@@ -273,7 +273,7 @@ static int __init root_nfs_parse(char *name, char *buf)
*/
static int __init root_nfs_name(char *name)
{
- char buf[NFS_MAXPATHLEN];
+ static char buf[NFS_MAXPATHLEN];
char *cp;
/* Set some default values */