Message ID | 1458643271-4227-49-git-send-email-luis.henriques@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/fs/namei.c b/fs/namei.c index 8a0c3d9d8298..34f8224be4ed 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -3108,6 +3108,10 @@ opened: goto exit_fput; } out: + if (unlikely(error > 0)) { + WARN_ON(1); + error = -EINVAL; + } if (got_write) mnt_drop_write(nd->path.mnt); path_put(&save_parent);