diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2019-08-30 16:39:14 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-03 15:49:11 +0200 |
commit | b62a31b04e9315517bcd59d6e9aac29ab0d9d582 (patch) | |
tree | d262f85dbb3d28641327f16caad9cc25df2eb53b /drivers/usb/host/xhci-dbgtty.c | |
parent | 5a030e618712fcdae0bc61b8c2303bac1c2b805e (diff) | |
download | linux-b62a31b04e9315517bcd59d6e9aac29ab0d9d582.tar.gz linux-b62a31b04e9315517bcd59d6e9aac29ab0d9d582.tar.bz2 linux-b62a31b04e9315517bcd59d6e9aac29ab0d9d582.zip |
usb: xhci: dbc: Use GFP_KERNEL instead of GFP_ATOMIC in 'xhci_dbc_alloc_requests()'
There is no need to use GFP_ATOMIC to allocate 'req'. GFP_KERNEL should be
enough and is already used for another allocation juste a few lines below.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/1567172356-12915-3-git-send-email-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci-dbgtty.c')
-rw-r--r-- | drivers/usb/host/xhci-dbgtty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-dbgtty.c b/drivers/usb/host/xhci-dbgtty.c index 845939f8a0b8..be726c791323 100644 --- a/drivers/usb/host/xhci-dbgtty.c +++ b/drivers/usb/host/xhci-dbgtty.c @@ -139,7 +139,7 @@ xhci_dbc_alloc_requests(struct dbc_ep *dep, struct list_head *head, struct dbc_request *req; for (i = 0; i < DBC_QUEUE_SIZE; i++) { - req = dbc_alloc_request(dep, GFP_ATOMIC); + req = dbc_alloc_request(dep, GFP_KERNEL); if (!req) break; |