提交 3370c74b 编写于 作者: D Dave Jones 提交者: Linus Torvalds

[PATCH] Remove redundant check from autofs4_put_super

We have to have a valid sbi here, or we'd have oopsed already.  (There's a
dereference of sbi->catatonic a few lines above)

Coverity #740
Signed-off-by: NDave Jones <davej@redhat.com>
Cc: Ian Kent <raven@themaw.net>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 44d53eb0
...@@ -157,8 +157,7 @@ static void autofs4_put_super(struct super_block *sb) ...@@ -157,8 +157,7 @@ static void autofs4_put_super(struct super_block *sb)
autofs4_catatonic_mode(sbi); /* Free wait queues, close pipe */ autofs4_catatonic_mode(sbi); /* Free wait queues, close pipe */
/* Clean up and release dangling references */ /* Clean up and release dangling references */
if (sbi) autofs4_force_release(sbi);
autofs4_force_release(sbi);
kfree(sbi); kfree(sbi);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册