]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
watchdog: pcwd_usb: Avoid GFP_ATOMIC where it is not needed
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 9 Aug 2020 07:19:12 +0000 (09:19 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 14 Oct 2020 13:02:22 +0000 (15:02 +0200)
commitb65762108bad73255f5f28658b6d7b79bd178be8
tree66aadddea527612a75d2f0398e206a38deadcbb7
parent4b2e7f99cdd314263c9d172bc17193b8b6bba463
watchdog: pcwd_usb: Avoid GFP_ATOMIC where it is not needed

There is no need to use GFP_ATOMIC here. It is a probe function, no
spinlock is taken and GFP_KERNEL is used just before and just after this
'usb_alloc_coherent()' call.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200809071912.742836-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/pcwd_usb.c