[media] v4l2: vb2-dma-sg: fix memory leak
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Fri, 28 Jan 2011 12:42:51 +0000 (09:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 07:54:27 +0000 (04:54 -0300)
commita9bb36aa0d6547aa0ab3d5cfde08e8651bd460bc
treea2ee0417881a97bf76c1b400ec0721106e1bd8d7
parent29e3fbd8edb31549fa8302c185bd0b915a43d8b8
[media] v4l2: vb2-dma-sg: fix memory leak

This patch fixes two minor memory leaks in videobuf2-dma-sg module. They
might happen only in case some other operations (like memory allocation)
failed.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf2-dma-sg.c