From: Laurent Pinchart Date: Fri, 9 Aug 2013 11:11:25 +0000 (-0300) Subject: [media] media: vb2: Fix potential deadlock in vb2_prepare_buffer X-Git-Tag: v3.12-rc1~135^2~85 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a517cca6b24fc54ac209e44118ec8962051662e3;p=pandora-kernel.git [media] media: vb2: Fix potential deadlock in vb2_prepare_buffer Commit b037c0fde22b1d3cd0b3c3717d28e54619fc1592 ("media: vb2: fix potential deadlock in mmap vs. get_userptr handling") fixes an AB-BA deadlock related to the mmap_sem and driver locks. The same deadlock can occur in vb2_prepare_buffer(), fix it the same way. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil Acked-by: Marek Szyprowski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed