1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

dvb-core/dmxdev: Ensure ctx is a valid variable

When enabling CONFIG_DVB_MMAP the dvb_vb2_ctx is copied to a
non-existant variable ctx, which causes an obvious compilation error.

dvb-core/dmxdev.c: In function ‘dvb_dmxdev_ts_callback’:
dvb-core/dmxdev.c:495:17: error: ‘ctx’ undeclared (first use in this function)
  495 |                 ctx = &dmxdevfilter->vb2_ctx;
      |                 ^~~
dvb-core/dmxdev.c:495:17: note: each undeclared identifier is reported only once for each function it appears in

This was fixed upstream in commit 57868acc369a (media: videobuf2: Add new uAPI
for DVB streaming I/O, Mon Dec 18 22:35:53 2017 -0500) about 5 years
ago.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
This commit is contained in:
Olliver Schinagl 2022-06-06 15:04:26 +02:00
parent e0539d5074
commit c58d495688
No known key found for this signature in database
GPG Key ID: 96E1A3A6C9044763

View File

@ -480,6 +480,9 @@ static int dvb_dmxdev_ts_callback(const u8 *buffer1, size_t buffer1_len,
{
struct dmxdev_filter *dmxdevfilter = feed->priv;
struct dvb_ringbuffer *buffer;
#ifdef CONFIG_DVB_MMAP
struct dvb_vb2_ctx *ctx = NULL;
#endif
int ret;
spin_lock(&dmxdevfilter->dev->lock);