media: lmedm04: Add missing usb_free_urb to free, interrupt urb
Subsystems (2)
Malcolm Priestley
maintainerPATCH 1/4 media: lmedm04: Add missing usb_free_urb to free, interrupt urb
The interrupt urb is killed but never freed add the function
Signed-off-by Malcolm Priestley <[email protected]>
--- drivers/media/usb/dvb-usb-v2/lmedm04.c | 1 + 1 file changed, 1 insertion(+)
drivers/media/usb/dvb-usb-v2/lmedm04.c +1 -0
@@ -1264,6 +1264,7 @@ static void *lme2510_exit_int(struct dvb_usb_device *d)if (st->lme_urb !=NULL ) {usb_kill_urb (st->lme_urb); +usb_free_urb (st->lme_urb);usb_free_coherent (d->udev,128 , st->buffer, st->lme_urb->transfer_dma);info ("Interrupt Service Stopped" );
Signature · 1 line
2.19.1
Quoted 13 lines · Malcolm Priestley
The interrupt urb is killed but never freed add the function
Signed-off-by Malcolm Priestley <[email protected]>--- drivers/media/usb/dvb-usb-v2/lmedm04.c | 1 + 1 file changed, 1 insertion(+)drivers/media/usb/dvb-usb-v2/lmedm04.c +0
-0
drivers/media/usb/dvb-usb-v2/lmedm04.c static void *lme2510_exit_int(struct dvb_usb_device *d) · line 1267
Quoted 4 lines
drivers/media/usb/dvb-usb-v2/lmedm04.c +1
-0@@ -1264,6 +1264,7 @@ static void *lme2510_exit_int(struct dvb_usb_device *d)if (st->lme_urb !=NULL ) {usb_kill_urb (st->lme_urb); +usb_free_urb (st->lme_urb);
Now st->lme_urb is a stale pointer.
drivers/media/usb/dvb-usb-v2/lmedm04.c static void *lme2510_exit_int(struct dvb_usb_device *d) · line 1269
Quoted 2 lines
drivers/media/usb/dvb-usb-v2/lmedm04.c +0
-0usb_free_coherent (d->udev,128 , st->buffer, st->lme_urb->transfer_dma);
And now you're following it.
Quoted 3 lines
drivers/media/usb/dvb-usb-v2/lmedm04.c +0
-0info ("Interrupt Service Stopped" );Signature · 1 line
2.19.1