Jia-Ju Bai d989dc20c5 [media] ivtv: Fix a sleep-in-atomic bug in snd_ivtv_pcm_hw_free
The driver may sleep under a spin lock, and the function call path is:
snd_ivtv_pcm_hw_free (acquire the lock by spin_lock_irqsave)
  vfree --> may sleep

To fix it, the "substream->runtime->dma_area" is passed to a temporary
value, and mark it NULL when holding the lock. The memory is freed by
vfree through the temporary value outside the lock holding.

Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
[hans.verkuil@cisco.com: removed unnecessary 'if (dma_area)']
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-06-07 12:28:49 -03:00
..
2017-05-09 10:01:15 -07:00
2017-05-09 15:40:28 -07:00
2017-05-04 19:15:35 -07:00
2017-06-07 07:50:49 -03:00
2017-05-05 19:33:07 -07:00
2017-04-27 11:54:49 +01:00
2017-04-20 09:54:24 +02:00
2017-05-09 10:01:15 -07:00
2017-05-24 08:21:56 -07:00
2017-05-04 19:15:35 -07:00
2017-05-04 19:15:35 -07:00
2017-05-09 10:01:15 -07:00
2017-05-24 20:29:53 -07:00
2017-06-07 07:50:49 -03:00
2017-05-18 23:54:47 -07:00
2017-05-19 10:10:07 +02:00
2017-05-05 11:36:44 -07:00
2017-05-11 11:12:26 -07:00