usb: host: max3421-hcd: unconditionally use GFP_ATOMIC in max3421_urb_enqueue()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 19 Jun 2014 19:44:57 +0000 (23:44 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 23:06:50 +0000 (16:06 -0700)
commit6c0f36954b9bcfedb87d785aa453132146645abc
tree4413164411235658bd625fccc0f5a860e52bb7c0
parenta2b63cb52ff1088fd4c3f7ee883d6a247571a70c
usb: host: max3421-hcd: unconditionally use GFP_ATOMIC in max3421_urb_enqueue()

As far as kzalloc() is called with spinlock held,
we have to pass GFP_ATOMIC regardless of mem_flags argument.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: David Mosberger <davidm@egauge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/max3421-hcd.c