Re: [PATCH] drivers: usb: host: Fix GFP_KERNEL in spinlock context

2017-12-21 Thread Shrikant Maurya
On Friday 22 December 2017 12:43 PM, Greg KH wrote: > On Fri, Dec 22, 2017 at 11:19:24AM +0530, shrikant.mau...@techveda.org wrote: >> From: Shrikant Maurya >> >> As reported by Jia-Ju Bai (https://lkml.org/lkml/2017/12/11/872): >> API's are using GFP_KERNEL to

[PATCH] drivers: usb: host: Fix GFP_KERNEL in spinlock context

2017-12-21 Thread shrikant . maurya
From: Shrikant Maurya As reported by Jia-Ju Bai (https://lkml.org/lkml/2017/12/11/872): API's are using GFP_KERNEL to allocate memory, which may sleep. To ensure atomicity such allocations must be avoided in critical sections under spinlock. Fixed by moving part of the code which is

[PATCH] drivers: base: power: Fix GFP_KERNEL in spinlock context

2017-12-12 Thread shrikant . maurya
From: Shrikant Maurya As reported by Jia-Ju Bai (https://lkml.org/lkml/2017/12/11/872): API's are using GFP_KERNEL to allocate memory which may sleep. To ensure atomicity such allocations must be avoided in critical sections under spinlock. Fixed by replacing GFP_KERNEL to GFP_ATOMIC. Rep