Thomas Pugliese d993670ca9 usb: wusbcore: allow wa_xfer_destroy to clean up partially constructed xfers
If __wa_xfer_setup fails, it can leave a partially constructed wa_xfer
object.  The error handling code eventually calls wa_xfer_destroy which
does not check for NULL before dereferencing xfer->seg which could cause
a kernel panic.  This change also makes sure to free xfer->seg which was
being leaked for all transfers before this change.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-09-26 16:31:36 -07:00
..
2011-03-31 11:26:23 -03:00
2010-10-22 10:22:07 -07:00
2013-06-24 16:20:43 -07:00
2013-06-24 16:20:43 -07:00
2013-06-24 16:20:43 -07:00