]> git.baikalelectronics.ru Git - kernel.git/commit
[media] media: s3c-camif: fix deadlock on driver probe()
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 28 Apr 2016 10:25:04 +0000 (07:25 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 May 2016 13:39:58 +0000 (10:39 -0300)
commit0a73c65ba56ec4bc7e2d10bb7eb7f4d63fd49d24
treee4ec03145dd7b6ffd44b8e1a2527b34022ddb670
parent9a265f8865eaf4942a9507e9cc314629f4faa299
[media] media: s3c-camif: fix deadlock on driver probe()

Commit c856a1e6fa5c05e7bd4995b9d48f615c1618a4ac ("[media] media: Always
keep a graph walk large enough around") changed
media_device_register_entity() function to take mdev->graph_mutex. This
causes deadlock in driver probe, which calls (indirectly) this function
with ->graph_mutex taken. This patch removes taking ->graph_mutex in
driver probe to avoid deadlock. Other drivers don't take ->graph_mutex
for entity registration, so this change should be safe.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/s3c-camif/camif-core.c