]> git.baikalelectronics.ru Git - kernel.git/commit
[media] media: videobuf2-core: Fix one __qbuf_dmabuf() error path
authorWu, Xia <xia.wu@intel.com>
Wed, 9 Dec 2015 07:26:26 +0000 (05:26 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 1 Feb 2016 09:32:40 +0000 (07:32 -0200)
commit68c9c8f6cb4ebd3375ffeb116588fc00a9ff406d
tree76a165f150469d49977744372badcea728d1706f
parentec6f95260516a3efc662ffbe14d2719e8edb8c2c
[media] media: videobuf2-core: Fix one __qbuf_dmabuf() error path

Add dma_buf_put() to decrease refcount of the dmabuf in error path if DMABUF size is smaller than the requirement.

Signed-off-by: wu xia <xia.wu@intel.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf2-core.c