Commit 404e7812 authored by Dan Carpenter's avatar Dan Carpenter Committed by Al Viro
Browse files

fs/sysv: dereferencing ERR_PTR()

I moved the dir_put_page() inside the if condition so we don't dereference
"page", if it's an ERR_PTR().

Signed-off-by: default avatarDan Carpenter <>
Signed-off-by: default avatarAl Viro <>
parent 26562449
......@@ -164,8 +164,8 @@ struct sysv_dir_entry *sysv_find_entry(struct dentry *dentry, struct page **res_
name, de->name))
goto found;
if (++n >= npages)
n = 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment