being 0.
Signed-off-by: Johan Fjeldtvedt
---
drivers/media/common/videobuf2/videobuf2-core.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/media/common/videobuf2/videobuf2-core.c
b/drivers/media/common/videobuf2/videobuf2-core.c
index f32ec7342ef0..14cedf42e907 100644
being 0.
v4: check num_planes, not num_buffers
Signed-off-by: Johan Fjeldtvedt
---
drivers/media/common/videobuf2/videobuf2-core.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/media/common/videobuf2/videobuf2-core.c
b/drivers/media/common/videobuf2/videobuf2-core.c
index
being 0.
Signed-off-by: Johan Fjeldtvedt
---
drivers/media/common/videobuf2/videobuf2-core.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/media/common/videobuf2/videobuf2-core.c
b/drivers/media/common/videobuf2/videobuf2-core.c
index f32ec7342ef0..5741e95e6af1 100644
Warn when driver sets 0 number of planes or 0 as plane sizes.
Signed-off-by: Johan Fjeldtvedt
---
drivers/media/common/videobuf2/videobuf2-core.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/media/common/videobuf2/videobuf2-core.c
b/drivers/media/common/videobuf2
Warn when driver sets 0 number of planes or 0 as plane sizes.
---
drivers/media/common/videobuf2/videobuf2-core.c | 8
1 file changed, 8 insertions(+)
diff --git a/drivers/media/common/videobuf2/videobuf2-core.c
b/drivers/media/common/videobuf2/videobuf2-core.c
index
Drop bogus call to usb_driver_release_interface() from the disconnect()
callback. As the interface is already being unbound at this point,
usb_driver_release_interface() simply returns early.
Signed-off-by: Johan Hovold <jo...@kernel.org>
---
drivers/media/usb/cpia2/cpia2_usb.c | 3 ---
vi <srinivasa.de...@conexant.com>
Reported-by: Andrey Konovalov <andreyk...@google.com>
Signed-off-by: Johan Hovold <jo...@kernel.org>
---
drivers/media/usb/cx231xx/cx231xx-cards.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/cx231xx/cx231xx-ca
face, where
> assoc_desc = udev->actconfig->intf_assoc[0]. There seems to be no
> check that the device actually contains an Interface Association
> Descriptor.
That is indeed a bug; I'll respond to this mail with a fix.
Thanks,
Johan
);
> goto out_free;
> @@ -580,7 +576,6 @@ static int gb_lights_light_v4l2_register(struct gb_light
> *light)
> return ret;
>
> out_free:
> - kfree(sd_cfg);
This looks a bit lazy, even if I just noticed that you repurpose this
error label (without renaming it) in you second patch.
> return ret;
> }
And while it's fine to take this through linux-media, it would still be
good to keep the maintainers on CC.
Thanks,
Johan
On Mon, Jul 03, 2017 at 03:41:59PM +0700, Lars Melin wrote:
> On 2017-07-03 15:10, Johan Hovold wrote:
> > On Thu, Jun 29, 2017 at 07:41:24PM +0200, Sebastian wrote:
> >> Sorry for the long delay, Johan.
> >>
> >> 2017-06-01 9:20 GMT+02:00 Johan Hovold <jo.
On Thu, Jun 29, 2017 at 07:41:24PM +0200, Sebastian wrote:
> Sorry for the long delay, Johan.
>
> 2017-06-01 9:20 GMT+02:00 Johan Hovold <jo...@kernel.org>:
> > [ +CC: media list ]
> >
> > On Wed, May 31, 2017 at 08:25:42PM +0200, Sebastian wrote:
> >
&
Drop a since commit e1159cb35712 ("[media] mceusb: remove pointless
mce_flush_rx_buffer function") redundant reinitialisation of two urb
fields immediately after they have been initialised.
Signed-off-by: Johan Hovold <jo...@kernel.org>
---
drivers/media/rc/mceusb.c | 3 ---
1
Fix urb and transfer-buffer leaks in an urb-submission error path which
may be hit when a device is disconnected.
Fixes: 66e89522aff7 ("V4L/DVB: IR: add mceusb IR receiver driver")
Cc: stable <sta...@vger.kernel.org> # 2.6.36
Cc: Jarod Wilson <ja...@redhat.com>
Signed-of
check to catch that recently went in (and was
backported to the non-EOL stable trees).
Thanks,
Johan
Add the missing endianness conversions to a debug call printing the
USB device-descriptor idVendor and idProduct fields during probe.
Signed-off-by: Johan Hovold <jo...@kernel.org>
---
drivers/media/usb/usbvision/usbvision-video.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
On Wed, Apr 05, 2017 at 06:07:31PM +, Mauro Carvalho Chehab wrote:
> This is an automatic generated email to let you know that the
> following patch were queued:
>
> Subject: [media] gspca: konica: add missing endpoint sanity check
> Author: Johan Hovold <jo...@kernel.org&g
On Mon, Mar 13, 2017 at 01:53:53PM +0100, Johan Hovold wrote:
> This series fixes a number of NULL-pointer dereferences (and related
> issues) due to missing endpoint sanity checks that can be triggered by a
> malicious USB device.
> Johan Hovold (6):
> [media] dib0700: fix NULL
Make sure to release the snd_card also on a late allocation error.
Fixes: e0d3bafd0258 ("V4L/DVB (10954): Add cx231xx USB driver")
Cc: stable <sta...@vger.kernel.org> # 2.6.30
Cc: Sri Deevi <srinivasa.de...@conexant.com>
Signed-off-by: Johan Hovold <jo...@kernel.or
table <sta...@vger.kernel.org> # 2.6.21
Cc: Thierry MERLE <thierry.me...@free.fr>
Signed-off-by: Johan Hovold <jo...@kernel.org>
---
drivers/media/usb/usbvision/usbvision-video.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/media/usb/usbvision/usbvis
be no risk for a NULL-pointer dereference here.
Fixes: b517af722860 ("V4L/DVB: gspca_konica: New gspca subdriver for
konica chipset using cams")
Cc: stable <sta...@vger.kernel.org> # 2.6.37
Cc: Hans de Goede <hdego...@redhat.com>
Signed-off-by: Johan Hovold <jo...@kerne
# 2.6.30
Cc: Sri Deevi <srinivasa.de...@conexant.com>
Signed-off-by: Johan Hovold <jo...@kernel.org>
---
drivers/media/usb/cx231xx/cx231xx-audio.c | 17 +++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/drivers/media/usb/cx231xx/cx231xx-audio.c
# 2.6.30
Cc: Sri Deevi <srinivasa.de...@conexant.com>
Signed-off-by: Johan Hovold <jo...@kernel.org>
---
drivers/media/usb/cx231xx/cx231xx-cards.c | 45 +++
1 file changed, 40 insertions(+), 5 deletions(-)
diff --git a/drivers/media/usb/cx231xx/cx231xx-
;mche...@kernel.org>
Signed-off-by: Johan Hovold <jo...@kernel.org>
---
drivers/media/usb/dvb-usb/dib0700_core.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/media/usb/dvb-usb/dib0700_core.c
b/drivers/media/usb/dvb-usb/dib0700_core.c
index dd5edd3a17ee..08acdd32e412 100644
This series fixes a number of NULL-pointer dereferences (and related
issues) due to missing endpoint sanity checks that can be triggered by a
malicious USB device.
Johan
Johan Hovold (6):
[media] dib0700: fix NULL-deref at probe
[media] usbvision: fix NULL-deref at probe
[media] cx231xx
table <sta...@vger.kernel.org> # 2.6.36
Signed-off-by: Johan Hovold <jo...@kernel.org>
---
Found through inspection, compile tested only.
Johan
drivers/media/rc/mceusb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceus
In addition to setting the ACK mask, also set the logical address mask
setting in the dongle. This is (and not the ACK mask) is persisted for
use in autonomous mode.
The logical address mask to use is deduced from the primary device type
in adap->log_addrs.
Signed-off-by: Johan Fjeldtvedt &
In addition to setting the ACK mask, also set the logical address mask
setting in the dongle. This is (and not the ACK mask) is persisted for
use in autonomous mode.
The logical address mask to use is deduced from the primary device type
in adap->log_addrs.
Signed-off-by: Johan Fjeldtvedt &
Fix some small things:
- clean up setup function
- use MSGEND instead of 0xfe
- don't assign "return value" from cec_phys_addr to err,
it has return type void.
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.com>
---
drivers/staging/media/pulse8-cec/p
The man page is extended with some more information about the tool and
what it does, and a SEE ALSO section is added.
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.com>
---
utils/cec-follower/cec-follower.1.in | 45 ++--
1 file changed, 38 insertions
The man page is extended with a more detailed description including a
more in-depth explanation of the different test result codes. An example
of how to run tests is also included, and a SEE ALSO section is added.
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.com>
---
utils/cec-complian
It is only checked for PRESUMED_OK and REFUSED when performing remote
tests, but these test result codes are also used elsewhere, so checking
for them is moved to the ok function.
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.com>
---
utils/cec-compliance/cec-compliance.cpp | 9 +++--
If the CEC device is disconnected, ioctl will return ENODEV. This is
checked for in cec-ctl (when monitoring), cec-follower and
cec-compliance, to make these exit when the CEC device disappears.
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.com>
---
utils/cec-compliance/cec-compliance.
ENODEV instead of EIO when devices are disconnected.
Johan Fjeldtvedt (1):
cec tools: exit if device is disconnected
utils/cec-compliance/cec-compliance.h | 9 +++--
utils/cec-ctl/cec-ctl.cpp | 7 ++-
utils/cec-follower/cec-processing.cpp | 14 --
3 files
If the CEC device is disconnected, ioctl will return ENODEV. This is
checked for in cec-ctl (when monitoring), cec-follower and
cec-compliance, to make these exit when the CEC device disappears.
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.com>
---
utils/cec-compliance/cec-compliance.
When messages are broadcast, it is not necessary to supply a --to option
to cec-ctl, but in that case the destination address was printed wrongly.
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.com>
---
utils/cec-ctl/cec-ctl.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
in interactive mode, we should wait for
at least 20 s and ask the user if there was any change (according to the CEC
1.4b CTS).
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.com>
---
utils/cec-compliance/cec-test.cpp | 26 +++---
1 file changed, 11 insertions(+), 15 deletions(-)
On, and changing to the correct input when
receiving Image/Text View On (followed by Active Source)
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.com>
---
utils/cec-compliance/cec-test-power.cpp | 100 +---
1 file changed, 67 insertions(+), 33 deletions(-)
diff
On, and changing to the correct input when
receiving Image/Text View On (followed by Active Source)
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.com>
---
utils/cec-compliance/cec-test-power.cpp | 101 +---
1 file changed, 68 insertions(+), 33 deletions(-)
diff
A TV shall not send a Routing Information message as initiator.
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.com>
---
utils/cec-follower/cec-processing.cpp | 6 ++
1 file changed, 6 insertions(+)
diff --git a/utils/cec-follower/cec-processing.cpp
b/utils/cec-follower/cec-processi
Make sending messages to the adapter serialized within the driver.
send_and_wait is split into send_and_wait_once, which only sends once
and checks for the result, and the higher level send_and_wait, which
performs locking and retries.
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.
The pulse8 dongle has some quirky behaviors when in autonomous mode.
Document these.
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.com>
---
drivers/staging/media/pulse8-cec/pulse8-cec.c | 23 +++
1 file changed, 23 insertions(+)
diff --git a/drivers/staging/media/puls
warnings and spelling error
- Add missing break
- Don't propagate internal error code to user space
Johan Fjeldtvedt (4):
cec: allow configuration both from within driver and from user space
pulse8-cec: serialize communication with adapter
pulse8-cec: add notes about behavior in autonomous mode
It makes sense for adapters such as the Pulse-Eight to be configurable
both from within the driver and from user space, so remove the
requirement that drivers only can call cec_s_log_addrs or
cec_s_phys_addr if they don't expose those capabilities to user space.
Signed-off-by: Johan Fjeldtvedt
is unconfigured, autonomous mode
is disabled.
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.com>
---
drivers/staging/media/pulse8-cec/pulse8-cec.c | 266 ++
1 file changed, 228 insertions(+), 38 deletions(-)
diff --git a/drivers/staging/media/pulse8-cec/pulse8-cec.c
b/d
Make sending messages to the adapter serialized within the driver.
send_and_wait is split into send_and_wait_once, which only sends once
and checks for the result, and the higher level send_and_wait, which
performs locking and retries.
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.
is unconfigured, autonomous mode
is disabled.
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.com>
---
drivers/staging/media/pulse8-cec/pulse8-cec.c | 259 ++
1 file changed, 221 insertions(+), 38 deletions(-)
diff --git a/drivers/staging/media/pulse8-cec/pulse8-cec.c
b/d
It makes sense for adapters such as the Pulse-Eight to be configurable
both from within the driver and from user space, so remove the
requirement that drivers only can call cec_s_log_addrs or
cec_s_phys_addr if they don't expose those capabilities to user space.
Signed-off-by: Johan Fjeldtvedt
The pulse8 dongle has some quirky behaviors when in autonomous mode.
Document these.
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.com>
---
drivers/staging/media/pulse8-cec/pulse8-cec.c | 23 +++
1 file changed, 23 insertions(+)
diff --git a/drivers/staging/media/puls
In all_dev_types2s: don't try to erase the last two characters in the
string if it is empty.
This was fixed in cec-ctl, so the same fix is applied to cec-compliance
and cec-follower.
Signed-off-by: Johan Fjeldtvedt <jaf...@gmail.com>
---
utils/cec-compliance/cec-compliance.cpp | 4 +++-
On Mar 7, 2012, at 5:23 PM, Martin MAURER wrote:
Hi Johan,
I have a similar problem which happens every few days with this card.
For me it helps to remove and reinsert the kernel module whenever this
happens.
rmmod -f dvb_usb_ttusb2 modprobe dvb_usb_ttusb2
Thanks a lot, Martin !
My
size!
dvb_ca adapter 0: DVB CAM link initialisation failed :(/
Any ideas on what might be wrong ?
Best regards,
Johan
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org
. Hwmem currently does not use cma but the next
version probably will.
/Johan Mossberg
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
be great...
regards,
Johan
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Oliver Endriss wrote:
Hi,
Johan wrote:
I need some guidance on error messages..
T
[ 7678.312025] dvb-ttpci: StartHWFilter error buf 0b07 0010 0803 b96a
ret 0 handle
These start as soon as I view or record a channel, and obviously fills
up the log quickly.
I believe the code
handle being larger
then 32. On my system it always reports .
Am I looking at faulty hardware, or can I resolve this issue more
elegant than just disabling the fault report?
(keep in mind that I do not have a programming/coding background)
Johan
start of code---
static int
Hi,
Seems like you are on a hot trail here ... Great !
What can I do to test your hypothesis on the EM2881_BOARD_DNT_DA2_HYBRID ?
May be I can verify if analog works ?
How are my chances in getting DVB supported ?
TIA for your time and effort in helping out.
Best Regards,
Johan
2009/11/7
Sorry, forgot to reply all
-- Forwarded message --
From: Johan Mutsaerts joh...@gmail.com
Date: 2009/11/7
Subject: Re: em28xx based USB Hybrid (Analog DVB-T) TV Tuner not supported
To: Devin Heitmueller dheitmuel...@kernellabs.com
Hi,
Something caught my eye while
regards,
johan
$ lspci -vvv:
02:09.0 Multimedia controller: Philips Semiconductors SAA7146 (rev 01)
Subsystem: Technotrend Systemtechnik GmbH Octal/Technotrend DVB-C
for iTV
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap
58 matches
Mail list logo