]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: pn533: Fix wrong GFP flag usage
authorHans de Goede <hdegoede@redhat.com>
Thu, 7 Jun 2018 13:54:48 +0000 (15:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Jun 2018 13:36:45 +0000 (21:36 +0800)
commit75837e780281f32618e7b020a3bdb01da3f43d32
treeacbccc06ada4eae916a114e2d0400eb830a0dcf6
parent23d7c43dbd1dc976e0aad015ad184ac02c352993
NFC: pn533: Fix wrong GFP flag usage

pn533_recv_response() is an urb completion handler, so it must use
GFP_ATOMIC. pn533_usb_send_frame() OTOH runs from a regular sleeping
context, so the pn533_submit_urb_for_response() there (and only there)
can use the regular GFP_KERNEL flags.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1514134
Fixes: c8459835664d ("NFC: pn533: Separate physical layer from ...")
Cc: Michael Thalmeier <michael.thalmeier@hale.at>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nfc/pn533/usb.c