diff options
author | Max Kellermann <max.kellermann@gmail.com> | 2016-12-15 19:51:07 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-12-21 07:15:36 -0200 |
commit | 48775cb73c2e26b7ca9d679875a6e570c8b8e124 (patch) | |
tree | 5506ecd6495afa55b912145211ac650f3036a61c /include/drm/drm_sysfs.h | |
parent | 78ccbf9ff89bd7a20d36be039cb3eab71081648c (diff) |
[media] pctv452e: move buffer to heap, no mutex
commit 73d5c5c864f4 ("[media] pctv452e: don't do DMA on stack") caused
a NULL pointer dereference which occurs when dvb_usb_init()
calls dvb_usb_device_power_ctrl() for the first time, before the
frontend has been attached. It also caused a recursive deadlock because
tt3650_ci_msg_locked() has already locked the mutex.
So, partially revert it, but move the buffer to the heap
(DMA capable), not to the stack (may not be DMA capable).
Instead of sharing one buffer which needs mutex protection,
do a new heap allocation for each call.
Fixes: commit 73d5c5c864f4 ("[media] pctv452e: don't do DMA on stack")
Cc: stable@vger.kernel.org # For Kernel 4.9
Signed-off-by: Max Kellermann <max.kellermann@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/drm/drm_sysfs.h')
0 files changed, 0 insertions, 0 deletions