From e38b25e7500098048d2e13375abffcae1e8b1339 Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Sat, 25 Mar 2006 03:06:54 -0800 Subject: [PATCH] --- yaml --- r: 23520 b: refs/heads/master c: 4af4c52f34606bdaab6930a845550c6fb02078a4 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/namei.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 32d82b453a54..81ceb1f3f08b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8d8c85117fbcbaea7718870ad4b1ddd12940d9b0 +refs/heads/master: 4af4c52f34606bdaab6930a845550c6fb02078a4 diff --git a/trunk/fs/namei.c b/trunk/fs/namei.c index c72b940797fc..1baf1b06fe47 100644 --- a/trunk/fs/namei.c +++ b/trunk/fs/namei.c @@ -1628,6 +1628,12 @@ int open_namei(int dfd, const char *pathname, int flag, goto exit; } + if (IS_ERR(nd->intent.open.file)) { + mutex_unlock(&dir->d_inode->i_mutex); + error = PTR_ERR(nd->intent.open.file); + goto exit_dput; + } + /* Negative dentry, just create the file */ if (!path.dentry->d_inode) { if (!IS_POSIXACL(dir->d_inode))