Commit 128e5e91 authored by David S. Miller's avatar David S. Miller

fs/autofs/inode.c:parse_options

- Fix bug in strsep/strchr changes, dereference *this_char
not *value at top of while loop.  This matches how the same
code in fs/autofs4/inode.c looks right now.
Withtout this autofs loading causes an OOPS as the first
time through the loop *value is dereferencing a NULL pointer.
parent e66d5915
......@@ -61,7 +61,7 @@ static int parse_options(char *options, int *pipefd, uid_t *uid, gid_t *gid, pid
if ( !options ) return 1;
while ((this_char = strsep(&options,",")) != NULL) {
if (!*value)
if (!*this_char)
continue;
if ((value = strchr(this_char,'=')) != NULL)
*value++ = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment