Description of problem:
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.
This bug has been in the kernel since 2.6.14-rc2 via b67dbf9d.