From: Marek Szyprowski Date: Wed, 16 Nov 2011 18:09:40 +0000 (-0300) Subject: [media] media: vb2: fix queueing of userptr buffers with null buffer pointer X-Git-Tag: v3.3-rc1~48^2~380 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0b7c7fc6f15e823cb4a5d225d9ef28b884ab6ec;p=pandora-kernel.git [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-diff-tree failed