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 38269ad commit 822dfbd8b4cd5511ca8965f990f39ff2f2b832e8
@Sascha Hauer Sascha Hauer authored on 26 Sep 2018
Showing 1 changed file
View
fs/fs.c