[media] videobuf2-dma-sg: fix possible memory leak
authorGeyslan G. Bem <geyslan@gmail.com>
Wed, 20 Nov 2013 21:02:52 +0000 (18:02 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 10 Dec 2013 07:40:57 +0000 (05:40 -0200)
commit64c832a4f79542809d6c10b8ec6225ff8b76092e
treee3ab4af41bdba5a3e3c65f1a1ea90124257a1f63
parenta5e3d743cb6ed2d73546eaf070138202c0c64a6f
[media] videobuf2-dma-sg: fix possible memory leak

Fix the return when 'buf->pages' allocation error.

Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
drivers/media/v4l2-core/videobuf2-dma-sg.c