Message ID | 1457390132-2155-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/fs/namei.c b/fs/namei.c index f39a798..3500b12 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -3213,6 +3213,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);