]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Fri, 30 Apr 2010 16:25:09 +0000 (09:25 -0700)
commite931b346c79385b1c447b3fd2ddb2cc0dadcf107
tree354dc1cf91089c473d9e236518d97cf84adb1bf7
parent8f5d78c14ecbb42a396656011028e151d9306879
USB: fix testing the wrong variable in fs_create_by_name()

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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/inode.c