Re: [PATCHv2 0/2] vb2: check for valid device pointer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi


On 2016-07-21 14:14, Hans Verkuil wrote:
From: Hans Verkuil <hans.verkuil@xxxxxxxxx>

Make error handling of alloc, get_userptr and attach_dmabuf systematic.

Add tests to check for a valid non-NULL device pointer.

Acked-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>


Regards,

	Hans

Changes since v1:

- Split into two patches
- Drop pr_debug

Hans Verkuil (2):
   vb2: don't return NULL for alloc and get_userptr ops
   vb2: add WARN_ONs checking if a valid struct device was passed

  drivers/media/v4l2-core/videobuf2-core.c       | 12 ++++++++----
  drivers/media/v4l2-core/videobuf2-dma-contig.c |  9 +++++++++
  drivers/media/v4l2-core/videobuf2-dma-sg.c     | 19 +++++++++++++------
  drivers/media/v4l2-core/videobuf2-vmalloc.c    | 13 ++++++++-----
  include/media/videobuf2-core.h                 |  6 +++---
  5 files changed, 41 insertions(+), 18 deletions(-)


Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux