mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
media: lmedm04: Use GFP_KERNEL for URB allocation/submission.
lme2510_int_read is not atomically called so use GFP_KERNEL for usb_alloc_urb and usb_submit_urb which is the first in the chain of interrupt submissions. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
59a3e78f8c
commit
add5861769
1 changed files with 2 additions and 2 deletions
|
@ -373,7 +373,7 @@ static int lme2510_int_read(struct dvb_usb_adapter *adap)
|
||||||
struct lme2510_state *lme_int = adap_to_priv(adap);
|
struct lme2510_state *lme_int = adap_to_priv(adap);
|
||||||
struct usb_host_endpoint *ep;
|
struct usb_host_endpoint *ep;
|
||||||
|
|
||||||
lme_int->lme_urb = usb_alloc_urb(0, GFP_ATOMIC);
|
lme_int->lme_urb = usb_alloc_urb(0, GFP_KERNEL);
|
||||||
|
|
||||||
if (lme_int->lme_urb == NULL)
|
if (lme_int->lme_urb == NULL)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
@ -393,7 +393,7 @@ static int lme2510_int_read(struct dvb_usb_adapter *adap)
|
||||||
if (usb_endpoint_type(&ep->desc) == USB_ENDPOINT_XFER_BULK)
|
if (usb_endpoint_type(&ep->desc) == USB_ENDPOINT_XFER_BULK)
|
||||||
lme_int->lme_urb->pipe = usb_rcvbulkpipe(d->udev, 0xa);
|
lme_int->lme_urb->pipe = usb_rcvbulkpipe(d->udev, 0xa);
|
||||||
|
|
||||||
usb_submit_urb(lme_int->lme_urb, GFP_ATOMIC);
|
usb_submit_urb(lme_int->lme_urb, GFP_KERNEL);
|
||||||
info("INT Interrupt Service Started");
|
info("INT Interrupt Service Started");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue