From: Christophe JAILLET Date: Mon, 14 Feb 2022 19:09:06 +0000 (+0100) Subject: net: hso: Use GFP_KERNEL instead of GFP_ATOMIC when possible X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=25ce79db8042d364fe957d51e734f14d5b0c933a;p=linux.git net: hso: Use GFP_KERNEL instead of GFP_ATOMIC when possible hso_create_device() is only called from function that already use GFP_KERNEL. And all the callers are called from the probe function. So there is no need here to explicitly require a GFP_ATOMIC when allocating memory. Use GFP_KERNEL instead. Signed-off-by: Christophe JAILLET Signed-off-by: David S. Miller --- diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index f97813a4e8d1b..f8221a7acf620 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c @@ -2319,7 +2319,7 @@ static struct hso_device *hso_create_device(struct usb_interface *intf, { struct hso_device *hso_dev; - hso_dev = kzalloc(sizeof(*hso_dev), GFP_ATOMIC); + hso_dev = kzalloc(sizeof(*hso_dev), GFP_KERNEL); if (!hso_dev) return NULL;