]> git.baikalelectronics.ru Git - kernel.git/commit
security: testing the wrong variable in create_by_name()
authorDan Carpenter <error27@gmail.com>
Thu, 22 Apr 2010 10:05:35 +0000 (12:05 +0200)
committerJames Morris <jmorris@namei.org>
Thu, 22 Apr 2010 11:17:41 +0000 (21:17 +1000)
commitbf69aea6a049ea1a5a68bd590d777f97ed6cf303
tree13ce72ed8e2a83ce127c3380ba0a7084591db3ab
parent64215994f636cae5a47026cec546edcd3e5a49d0
security: testing the wrong variable in create_by_name()

There is a typo here.  We should be testing "*dentry" instead of
"dentry".  If "*dentry" is an ERR_PTR, it gets dereferenced in either
mkdir() or create() which would cause an OOPs.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/inode.c