musb: potential use after free
authorDan Carpenter <error27@gmail.com>
Thu, 25 Mar 2010 11:14:27 +0000 (13:14 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Apr 2010 16:25:08 +0000 (09:25 -0700)
commit714bc5ef3edaec3ca0cf155fe01411760527c52e
tree0983d463571594d1e834fc89cff594d23c45f91c
parent5e0e61afa5b342c0197fce2d4fd2a2b515e96b31
musb: potential use after free

We assign "urb->hcpriv = qh;" a few lines down.  I'm pretty sure we
want it "urb->hcpriv" to be NULL not a freed value.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_host.c