]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] vb2: don't return NULL for alloc and get_userptr ops
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 21 Jul 2016 12:14:02 +0000 (09:14 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 13:10:40 +0000 (10:10 -0300)
commit0ff657b0f6120cb53f98b1b42c87af34670edff5
tree9baee4a0202c7a51056e016f16bcfb575a1133da
parent82019205e3a8fc687c4ee6538b57039884be4ccc
[media] vb2: don't return NULL for alloc and get_userptr ops

Always return an ERR_PTR() instead of NULL.

This makes the behavior of alloc, get_userptr and attach_dmabuf the
same.

Update the documentation in videobuf2-core.h as well.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/v4l2-core/videobuf2-core.c
drivers/media/v4l2-core/videobuf2-dma-sg.c
drivers/media/v4l2-core/videobuf2-vmalloc.c
include/media/videobuf2-core.h