[media] media: vb2: review mem_priv usage and fix potential bugs
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 Dec 2011 08:53:06 +0000 (05:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 30 Dec 2011 18:07:43 +0000 (16:07 -0200)
commita00d02663735df4027809da4412280925c7c9453
treef25e4a0c14e2ca6ddecd81057a367bcf8fcc377b
parent5931ffe3bee6216e59faf18b317dea4e637eef03
[media] media: vb2: review mem_priv usage and fix potential bugs

This patch is a result of review of mem_priv entry usage in videobuf2 core.
It fixes all all potential places where it was not checked against NULL or
zeroed after freeing as well as a few style issues.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
CC: Pawel Osciak <pawel@osciak.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf2-core.c