]> git.baikalelectronics.ru Git - kernel.git/commit
fs/sysv: dereferencing ERR_PTR()
authorDan Carpenter <error27@gmail.com>
Wed, 21 Apr 2010 10:30:32 +0000 (12:30 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 15 May 2010 11:16:33 +0000 (07:16 -0400)
commit6472511b524b01ae7d7d95838872ffaae887575d
tree5eb0f81657ebecdd747583df54a261a4e305df3f
parent3e31985e529f9527c37c7ce5635ac95ea6bc32f5
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: Dan Carpenter <error27@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/sysv/dir.c