usb: usb_bam: fix scheduling while atomic in a call to ipa_connect()
The usb bam driver uses ipa_connect() to connect a pipe to ipa peer bam.
However this call was done from atomic context, fix that.
BUG: scheduling while atomic: khubd/29/0x40000002
(unwind_backtrace+0x0/0x11c) from [<c0527e00>]
(__schedule+0x64/0x5e8) from [<c00a2440>]
(__cond_resched+0x24/0x34) from [<c0528410>]
(_cond_resched+0x34/0x44) from [<c00f7104>]
(shrink_page_list+0x60/0x978) from [<c00f7e8c>]
(shrink_inactive_list+0x214/0x524) from [<c00f84d8>]
(shrink_mem_cgroup_zone+0x33c/0x45c) from [<c00f9154>]
(try_to_free_pages+0x1c8/0x4a8) from [<c00ed958>]
(__alloc_pages_nodemask+0x3bc/0x66c) from [<c001875c>]
(__alloc_remap_buffer.isra.12+0x30/0x220) from [<c0018c68>]
(arm_dma_alloc+0x220/0x274) from [<c0375348>]
(ipa_connect_allocate_fifo.isra.4+0xd4/0x120) from [<c03755ec>]
(ipa_connect+0x258/0x4f8) from [<c03673a0>]
(connect_pipe_ipa+0x19c/0x3e8) from [<c0367930>]
(usb_bam_connect_ipa+0x344/0x484) from [<bf08e7b0>]
Change-Id: I092d57c86e7310a141ee34c44173dcc115c69b02
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
1 file changed