From f0b7c7fc6f15e823cb4a5d225d9ef28b884ab6ec Mon Sep 17 00:00:00 2001 From: Marek Szyprowski Date: Wed, 16 Nov 2011 15:09:40 -0300 Subject: [PATCH] [media] media: vb2: fix queueing of userptr buffers with null buffer pointer Heuristic that checks if the memory pointer has been changed lacked a check if the pointer was actually provided by the userspace, what allowed one to queue a NULL pointer which was accepted without further checking. This patch fixes this issue. Reported-by: Sylwester Nawrocki Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park CC: Pawel Osciak Signed-off-by: Mauro Carvalho Chehab --- Reading git-format-patch failed