Message ID | 1457483220-26806-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/fs/namei.c b/fs/namei.c index f38cb09..6c363c9 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -3124,6 +3124,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);