Re: [patch] usb: testing the wrong variable in fs_create_by_name()

From: Greg KH
Date: Thu Apr 22 2010 - 12:24:47 EST


On Thu, Apr 22, 2010 at 12:00:52PM +0200, Dan Carpenter wrote:
> 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@xxxxxxxxx>

Nice catch, thanks. I'll go queue this up.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/