fs: open: Do not forget to set errno
When the initial lookup fails in open we have to go to the error path
which sets errno correctly rather than returning directly.

Fixes: b3fbfad7ae ("fs: dentry cache implementation")

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent a451447 commit 197489ba31b70c51f76151d2c58a1d8f5d73dfe6
@Sascha Hauer Sascha Hauer authored on 26 Sep 2018
Showing 1 changed file
View
fs/fs.c