From 4879785ed511083676f27a016c9ad6c46c8e5737 Mon Sep 17 00:00:00 2001 From: Sakari Ailus Date: Fri, 13 Feb 2015 04:42:37 -0300 Subject: [PATCH] [media] vb2: Fix dma_dir setting for dma-contig mem type The last argument of vb2_dc_get_user_pages() is of type enum dma_data_direction, but the caller, vb2_dc_get_userptr() passes a value which is the result of comparison dma_dir == DMA_FROM_DEVICE. This results in the write parameter to get_user_pages() being zero in all cases, i.e. that the caller has no intent to write there. This was broken by patch "vb2: replace 'write' by 'dma_dir'". Signed-off-by: Sakari Ailus Cc: stable@vger.kernel.org # for v3.19 Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-format-patch failed