USB: fix testing the wrong variable in fs_create_by_name()
authorDan Carpenter <error27@gmail.com>
Thu, 22 Apr 2010 10:00:52 +0000 (12:00 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 21:57:02 +0000 (14:57 -0700)
commitb7cbd217d5a3197fa38f88a89bb75fa6bf7121b4
tree5f6f9602edf4855de90003c9015c03b49a1163a5
parenta559bbbda22d8905fe71cbcb9f1ea11b8a9668a7
USB: fix testing the wrong variable in fs_create_by_name()

commit fa7fe7af146a7b613e36a311eefbbfb5555325d1 upstream.

There is a typo here.  We should be testing "*dentry" which was just
assigned instead of "dentry".  This could result in dereferencing an
ERR_PTR inside either usbfs_mkdir() or usbfs_create().

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/inode.c