]> git.karo-electronics.de Git - linux-beck.git/commit
[media] videobuf2: fix core to correctly identify allocation failures
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 22 Mar 2011 12:24:58 +0000 (09:24 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 13 Apr 2011 12:52:16 +0000 (09:52 -0300)
commit62a79436a54e5f33920bf95a3fae677540c7ef2c
treea64acd9dee7b3bc54142a77860a12c9b01995751
parent0f890ab1b51a5e59f078f046229825076d1e3c77
[media] videobuf2: fix core to correctly identify allocation failures

The videobuf2-dma-contig allocator returns an ERR_PTR() on failure, not
a NULL like all other allocators. Fix videobuf2-core to also correctly
recognise those failures.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf2-core.c