forked from luck/tmp_suning_uos_patched
usb: auerswald free kill urb cleanup
- usb_free_urb() cleanup - usb_kill_urb() cleanup Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
4ba0b2ed58
commit
2891a51cc2
@ -704,9 +704,7 @@ static void auerbuf_free (pauerbuf_t bp)
|
||||
{
|
||||
kfree(bp->bufp);
|
||||
kfree(bp->dr);
|
||||
if (bp->urbp) {
|
||||
usb_free_urb(bp->urbp);
|
||||
}
|
||||
usb_free_urb(bp->urbp);
|
||||
kfree(bp);
|
||||
}
|
||||
|
||||
@ -1155,8 +1153,7 @@ static void auerswald_int_release (pauerswald_t cp)
|
||||
dbg ("auerswald_int_release");
|
||||
|
||||
/* stop the int endpoint */
|
||||
if (cp->inturbp)
|
||||
usb_kill_urb (cp->inturbp);
|
||||
usb_kill_urb (cp->inturbp);
|
||||
|
||||
/* deallocate memory */
|
||||
auerswald_int_free (cp);
|
||||
|
Loading…
Reference in New Issue
Block a user