]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 21:57:14 +0000 (14:57 -0700)
commite3a126e62222b90f6c9ec63cc30cf443210764f7
tree9facd8803797b1711f18bf88969135b320fc0f4e
parent8faa545b70aa50bcb01a7baa113341ba1dff2fc3
security: testing the wrong variable in create_by_name()

commit b338cc8207eae46640a8d534738fda7b5e48511d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
security/inode.c