All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: gadget: tegra-xudc: Avoid GFP_ATOMIC where it is not needed
@ 2020-08-09  7:29 ` Christophe JAILLET
  0 siblings, 0 replies; 6+ messages in thread
From: Christophe JAILLET @ 2020-08-09  7:29 UTC (permalink / raw)
  To: balbi, gregkh, thierry.reding, jonathanh, nkristam, yuehaibing,
	heikki.krogerus
  Cc: linux-usb, linux-tegra, linux-kernel, kernel-janitors,
	Christophe JAILLET

There is no need to use GFP_ATOMIC here. It is a probe function, no
spinlock is taken.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
 drivers/usb/gadget/udc/tegra-xudc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/gadget/udc/tegra-xudc.c b/drivers/usb/gadget/udc/tegra-xudc.c
index d6ff68c06911..9aa4815c1c59 100644
--- a/drivers/usb/gadget/udc/tegra-xudc.c
+++ b/drivers/usb/gadget/udc/tegra-xudc.c
@@ -3733,7 +3733,7 @@ static int tegra_xudc_probe(struct platform_device *pdev)
 	unsigned int i;
 	int err;
 
-	xudc = devm_kzalloc(&pdev->dev, sizeof(*xudc), GFP_ATOMIC);
+	xudc = devm_kzalloc(&pdev->dev, sizeof(*xudc), GFP_KERNEL);
 	if (!xudc)
 		return -ENOMEM;
 
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-08-11  1:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-09  7:29 [PATCH] usb: gadget: tegra-xudc: Avoid GFP_ATOMIC where it is not needed Christophe JAILLET
2020-08-09  7:29 ` Christophe JAILLET
2020-08-10 14:00 ` Thierry Reding
2020-08-10 14:00   ` Thierry Reding
2020-08-11  1:18   ` JC Kuo
2020-08-11  1:18     ` JC Kuo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.