mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
autofs4: fix false positive compile error
On strict build environments we can see: fs/autofs4/inode.c: In function 'autofs4_fill_super': fs/autofs4/inode.c:312: error: 'pgrp' may be used uninitialized in this function make[2]: *** [fs/autofs4/inode.o] Error 1 make[1]: *** [fs/autofs4] Error 2 make: *** [fs] Error 2 make: *** Waiting for unfinished jobs.... This is due to the use of pgrp_set being used to indicate pgrp has has been set rather than initializing pgrp itself. Signed-off-by: Ian Kent <raven@themaw.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
8a5b20aeba
commit
571ff4731b
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent)
|
||||||
int pipefd;
|
int pipefd;
|
||||||
struct autofs_sb_info *sbi;
|
struct autofs_sb_info *sbi;
|
||||||
struct autofs_info *ino;
|
struct autofs_info *ino;
|
||||||
int pgrp;
|
int pgrp = 0;
|
||||||
bool pgrp_set = false;
|
bool pgrp_set = false;
|
||||||
int ret = -EINVAL;
|
int ret = -EINVAL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue