<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/media/usb/b2c2, branch linux-4.4.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-4.4.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-4.4.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2020-04-02T17:02:38+00:00</updated>
<entry>
<title>media: flexcop-usb: fix endpoint sanity check</title>
<updated>2020-04-02T17:02:38+00:00</updated>
<author>
<name>Johan Hovold</name>
<email>johan@kernel.org</email>
</author>
<published>2020-01-03T16:35:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0581808a4b6d1629f8da07b015f4c292cbbc2e76'/>
<id>urn:sha1:0581808a4b6d1629f8da07b015f4c292cbbc2e76</id>
<content type='text'>
commit bca243b1ce0e46be26f7c63b5591dfbb41f558e5 upstream.

commit 1b976fc6d684 ("media: b2c2-flexcop-usb: add sanity checking") added
an endpoint sanity check to address a NULL-pointer dereference on probe.
Unfortunately the check was done on the current altsetting which was later
changed.

Fix this by moving the sanity check to after the altsetting is changed.

Fixes: 1b976fc6d684 ("media: b2c2-flexcop-usb: add sanity checking")
Cc: Oliver Neukum &lt;oneukum@suse.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Signed-off-by: Sean Young &lt;sean@mess.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>media: flexcop-usb: fix NULL-ptr deref in flexcop_usb_transfer_init()</title>
<updated>2020-01-04T12:34:10+00:00</updated>
<author>
<name>Yang Yingliang</name>
<email>yangyingliang@huawei.com</email>
</author>
<published>2019-09-24T09:49:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f19a9d8f467e000a176301261b872ca68dc92519'/>
<id>urn:sha1:f19a9d8f467e000a176301261b872ca68dc92519</id>
<content type='text'>
[ Upstream commit 649cd16c438f51d4cd777e71ca1f47f6e0c5e65d ]

If usb_set_interface() failed, iface-&gt;cur_altsetting will
not be assigned and it will be used in flexcop_usb_transfer_init()
It may lead a NULL pointer dereference.

Check usb_set_interface() return value in flexcop_usb_init()
and return failed to avoid using this NULL pointer.

Signed-off-by: Yang Yingliang &lt;yangyingliang@huawei.com&gt;
Signed-off-by: Sean Young &lt;sean@mess.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: b2c2-flexcop-usb: add sanity checking</title>
<updated>2019-11-28T17:26:19+00:00</updated>
<author>
<name>Oliver Neukum</name>
<email>oneukum@suse.com</email>
</author>
<published>2019-07-30T07:48:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=89660684ceca03bcaf5d1637709a4875e98387c6'/>
<id>urn:sha1:89660684ceca03bcaf5d1637709a4875e98387c6</id>
<content type='text'>
commit 1b976fc6d684e3282914cdbe7a8d68fdce19095c upstream.

The driver needs an isochronous endpoint to be present. It will
oops in its absence. Add checking for it.

Reported-by: syzbot+d93dff37e6a89431c158@syzkaller.appspotmail.com
Signed-off-by: Oliver Neukum &lt;oneukum@suse.com&gt;
Signed-off-by: Sean Young &lt;sean@mess.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>[media] drivers: media: usb: b2c2: use usb_*_coherent() instead of pci_*_consistent() in flexcop-usb.c</title>
<updated>2013-10-17T14:26:41+00:00</updated>
<author>
<name>Chen Gang</name>
<email>gang.chen@asianux.com</email>
</author>
<published>2013-09-23T02:20:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=6c7e346974ad6d20898026f209581fb6dd8ce3f0'/>
<id>urn:sha1:6c7e346974ad6d20898026f209581fb6dd8ce3f0</id>
<content type='text'>
Some architectures do not support PCI, but still support USB, so need
let our usb driver try to use usb_* instead of pci_* to support these
architectures, or can not pass compiling.
The related error (with allmodconfig for arc):
    CC [M]  drivers/media/usb/b2c2/flexcop-usb.o
  drivers/media/usb/b2c2/flexcop-usb.c: In function ‘flexcop_usb_transfer_exit’:
  drivers/media/usb/b2c2/flexcop-usb.c:393: error: implicit declaration of function ‘pci_free_consistent’
  drivers/media/usb/b2c2/flexcop-usb.c: In function ‘flexcop_usb_transfer_init’:
  drivers/media/usb/b2c2/flexcop-usb.c:410: error: implicit declaration of function ‘pci_alloc_consistent’

Signed-off-by: Chen Gang &lt;gang.chen@asianux.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] Kconfig: Fix b2c2 common code selection</title>
<updated>2012-08-21T11:38:31+00:00</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab@redhat.com</email>
</author>
<published>2012-08-20T18:52:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=01b0c11a1ba49ac96f58b7bc92772c2b469d6caa'/>
<id>urn:sha1:01b0c11a1ba49ac96f58b7bc92772c2b469d6caa</id>
<content type='text'>
As reported by Randy:

&gt; flexcop-pci.c:(.text+0x19af63): undefined reference to `flexcop_device_exit'
&gt; flexcop-pci.c:(.text+0x19af77): undefined reference to `flexcop_device_kfree'
&gt; flexcop-pci.c:(.text+0x19b10f): undefined reference to `flexcop_pass_dmx_packets'
&gt; flexcop-pci.c:(.text+0x19b182): undefined reference to `flexcop_pass_dmx_data'
&gt; flexcop-pci.c:(.text+0x19b1ae): undefined reference to `flexcop_pass_dmx_data'
&gt; flexcop-pci.c:(.text+0x19b1f8): undefined reference to `flexcop_device_kmalloc'
&gt; flexcop-pci.c:(.text+0x19b256): undefined reference to `flexcop_i2c_request'
&gt; flexcop-pci.c:(.text+0x19b261): undefined reference to `flexcop_eeprom_check_mac_addr'
&gt; flexcop-pci.c:(.text+0x19b2c6): undefined reference to `flexcop_device_initialize'
&gt; flexcop-pci.c:(.text+0x19b332): undefined reference to `flexcop_sram_set_dest'
&gt; flexcop-pci.c:(.text+0x19b348): undefined reference to `flexcop_sram_set_dest'
&gt; flexcop-pci.c:(.text+0x19b3f8): undefined reference to `flexcop_device_exit'
&gt; flexcop-pci.c:(.text+0x19b408): undefined reference to `flexcop_device_kfree'
&gt; flexcop-pci.c:(.text+0x19b4a2): undefined reference to `flexcop_pid_feed_control'
&gt; flexcop-pci.c:(.text+0x19b4d7): undefined reference to `flexcop_pid_feed_control'
&gt;
&gt; since it is possible to enable DVB_B2C2_FLEXCOP_PCI
&gt; when CONFIG_I2C is not enabled, but then DVB_B2C2_FLEXCOP
&gt; is not enabled because I2C is not enabled.

Reported-by: Randy Dunlap &lt;rdunlap@xenotime.net&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] flexcop: Show the item to enable debug after the driver</title>
<updated>2012-08-21T11:05:33+00:00</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab@redhat.com</email>
</author>
<published>2012-08-20T19:49:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8511f8eaa86bb16e4e2bd5f30d5f12764f59ae8d'/>
<id>urn:sha1:8511f8eaa86bb16e4e2bd5f30d5f12764f59ae8d</id>
<content type='text'>
Instead of showing the option to show debug at the end, show
it after each driver.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] Fix some Makefile rules</title>
<updated>2012-08-16T22:55:03+00:00</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab@redhat.com</email>
</author>
<published>2012-08-16T19:57:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=88f8472c9fc6c08f5113887471f1f4aabf7b2929'/>
<id>urn:sha1:88f8472c9fc6c08f5113887471f1f4aabf7b2929</id>
<content type='text'>
On a few places, := were using instead of +=, causing drivers to
not compile.

While here, standardize the usage of += on all cases where multiple
lines are needed, and for obj-y/obj-m targets, and := when just one
line is needed, on &lt;module&gt;-obj rules.

Reported-by: Hans Verkuil &lt;hverkuil@xs4all.nl&gt;
Identified-by: Antti Polosaari &lt;crope@iki.fi&gt;
Tested-by: Antti Palosaari &lt;crope@iki.fi&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] b2c2: frontends/tuners are not needed at the bridge binding</title>
<updated>2012-08-14T02:52:53+00:00</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab@redhat.com</email>
</author>
<published>2012-08-14T02:43:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b3f52608ba7b4c231621d7e4e9e1bfd8a390f910'/>
<id>urn:sha1:b3f52608ba7b4c231621d7e4e9e1bfd8a390f910</id>
<content type='text'>
The frontends/tuners are used inside the common part of the driver.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] common: move media/common/tuners to media/tuners</title>
<updated>2012-08-14T02:40:28+00:00</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab@redhat.com</email>
</author>
<published>2012-06-14T19:35:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ccae7af2bf07dfef69cc2eb6ebc9e1ff15addfbd'/>
<id>urn:sha1:ccae7af2bf07dfef69cc2eb6ebc9e1ff15addfbd</id>
<content type='text'>
Move the tuners one level up, as the "common" directory will be used
by drivers that are shared between more than one driver.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] b2c2: break it into common/pci/usb directories</title>
<updated>2012-08-14T02:38:31+00:00</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab@redhat.com</email>
</author>
<published>2012-06-14T19:35:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3785bc170f79ef04129731582b468c28e1326d6d'/>
<id>urn:sha1:3785bc170f79ef04129731582b468c28e1326d6d</id>
<content type='text'>
b2c2 is, in fact, 2 drivers: one for PCI and one for USB, plus
a common bus-independent code. Break it accordingly.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
</feed>
