From: Hans Verkuil <hans.verkuil@xxxxxxxxx> Signed-off-by: Hans Verkuil <hans.verkuil@xxxxxxxxx> --- drivers/media/v4l2-core/videobuf2-dvb.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/media/v4l2-core/videobuf2-dvb.c b/drivers/media/v4l2-core/videobuf2-dvb.c index d092698..d954bb8 100644 --- a/drivers/media/v4l2-core/videobuf2-dvb.c +++ b/drivers/media/v4l2-core/videobuf2-dvb.c @@ -30,9 +30,12 @@ MODULE_LICENSE("GPL"); static int dvb_fnc(struct vb2_buffer *vb, void *priv) { struct vb2_dvb *dvb = priv; + void *p = vb2_plane_begin_cpu_access(vb, 0); - dvb_dmx_swfilter(&dvb->demux, vb2_plane_vaddr(vb, 0), - vb2_get_plane_payload(vb, 0)); + if (p == NULL) + return -ENOMEM; + dvb_dmx_swfilter(&dvb->demux, p, vb2_get_plane_payload(vb, 0)); + vb2_plane_end_cpu_access(vb, 0); return 0; } -- 2.1.1 -- 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