<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/spi, branch linux-5.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.1.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.1.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2019-01-16T16:44:29Z</updated>
<entry>
<title>media: cxd2880-spi: fix two memory leaks of dvb_spi</title>
<updated>2019-01-16T16:44:29Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2018-12-22T14:12:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c54dbfcda3059c255f335e75a27d7f5c64e6549e'/>
<id>urn:sha1:c54dbfcda3059c255f335e75a27d7f5c64e6549e</id>
<content type='text'>
There are two return paths that do not kfree dvb_spi. Fix the memory
leaks by returning via the exit label fail_adapter that will free
dvi_spi.

Detected by CoverityScan, CID#1475991 ("Resource Leak")

Fixes: cb496cd472af ("media: cxd2880-spi: Add optional vcc regulator")

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Acked-by: Yasunari Takiguchi &lt;Yasunari.Takiguchi@sony.com&gt;?
Signed-off-by: Sean Young &lt;sean@mess.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: cxd2880-spi: Add optional vcc regulator</title>
<updated>2018-12-03T18:33:16Z</updated>
<author>
<name>Neil Armstrong</name>
</author>
<published>2018-11-08T12:50:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cb496cd472af3ec922063c14fd71a72db4467f6f'/>
<id>urn:sha1:cb496cd472af3ec922063c14fd71a72db4467f6f</id>
<content type='text'>
This patchset adds an optional VCC regulator to the driver probe function
to make sure power is enabled to the module before starting attaching to
the device.

Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Acked-by: Yasunari Takiguchi &lt;Yasunari.Takiguchi@sony.com&gt;
Signed-off-by: Sean Young &lt;sean@mess.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: cxd2880-spi: fix probe when dvb_attach fails</title>
<updated>2018-12-03T18:26:48Z</updated>
<author>
<name>Neil Armstrong</name>
</author>
<published>2018-11-08T12:44:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=458ffce1cb46e46e3cec48b625ed142250475708'/>
<id>urn:sha1:458ffce1cb46e46e3cec48b625ed142250475708</id>
<content type='text'>
When dvb_attach fails, probe returns 0, and remove crashes afterwards.
This patch sets the return value to -ENODEV when attach fails.

Fixes: bd24fcddf6b8 ("media: cxd2880-spi: Add support for CXD2880 SPI interface")

Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Acked-by: Yasunari Takiguchi &lt;Yasunari.Takiguchi@sony.com&gt;
Signed-off-by: Sean Young &lt;sean@mess.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: cxd2880-spi: Modified how to declare structure</title>
<updated>2018-05-05T14:37:12Z</updated>
<author>
<name>Yasunari Takiguchi</name>
</author>
<published>2018-04-26T06:39:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=447f0081fc33b7f794505cf561a03e6e0f4814c0'/>
<id>urn:sha1:447f0081fc33b7f794505cf561a03e6e0f4814c0</id>
<content type='text'>
This is the modification of structure declaration for spi_transfer.

Signed-off-by: Yasunari Takiguchi &lt;Yasunari.Takiguchi@sony.com&gt;
Signed-off-by: Masayuki Yamamoto &lt;Masayuki.Yamamoto@sony.com&gt;
Signed-off-by: Hideki Nozawa &lt;Hideki.Nozawa@sony.com&gt;
Signed-off-by: Kota Yonezawa &lt;Kota.Yonezawa@sony.com&gt;
Signed-off-by: Toshihiko Matsumoto &lt;Toshihiko.Matsumoto@sony.com&gt;
Signed-off-by: Satoshi Watanabe &lt;Satoshi.C.Watanabe@sony.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: cxd2880-spi: avoid out-of-bounds access warning</title>
<updated>2018-05-04T15:27:00Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2018-03-13T12:09:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=53dcd70eb710607b2d4085ca91a433cd9feb7b41'/>
<id>urn:sha1:53dcd70eb710607b2d4085ca91a433cd9feb7b41</id>
<content type='text'>
The -Warray-bounds warning in gcc-8 triggers for a newly added file:

drivers/media/spi/cxd2880-spi.c: In function 'cxd2880_write_reg':
drivers/media/spi/cxd2880-spi.c:111:3: error: 'memcpy' forming offset [133, 258] is out of the bounds [0, 132] of object 'send_data' with type 'u8[132]' {aka 'unsigned char[132]'} [-Werror=array-bounds]

The problem appears to be that we have two range checks in this function,
first comparing against BURST_WRITE_MAX (128) and then comparing against
a literal '255'. The logic checking the buffer size looks at the second
one and decides that this might be the actual maximum data length.

This is understandable behavior from the compiler, but the code is actually
safe. Since the first check is already shorter, we can remove the loop
and only leave that. To be on the safe side in case BURST_WRITE_MAX might
be increased, I'm leaving the check against U8_MAX.

Fixes: bd24fcddf6b8 ("media: cxd2880-spi: Add support for CXD2880 SPI interface")

Cc: Martin Sebor &lt;msebor@gmail.com&gt;
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Reviewed-by: Yasunari Takiguchi &lt;Yasunari.Takiguchi@sony.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: cxd2880: Add all Makefile, Kconfig files and Update MAINTAINERS file for the driver</title>
<updated>2018-03-07T10:02:57Z</updated>
<author>
<name>Yasunari Takiguchi</name>
</author>
<published>2018-01-18T08:59:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9dbaad428d692815f01cda36dc6ae8ae0a4e8bf4'/>
<id>urn:sha1:9dbaad428d692815f01cda36dc6ae8ae0a4e8bf4</id>
<content type='text'>
This is the Makefile, Kconfig files of driver
and MAINTAINERS file update about the driver
for the Sony CXD2880 DVB-T2/T tuner + demodulator.

Signed-off-by: Yasunari Takiguchi &lt;Yasunari.Takiguchi@sony.com&gt;
Signed-off-by: Masayuki Yamamoto &lt;Masayuki.Yamamoto@sony.com&gt;
Signed-off-by: Hideki Nozawa &lt;Hideki.Nozawa@sony.com&gt;
Signed-off-by: Kota Yonezawa &lt;Kota.Yonezawa@sony.com&gt;
Signed-off-by: Toshihiko Matsumoto &lt;Toshihiko.Matsumoto@sony.com&gt;
Signed-off-by: Satoshi Watanabe &lt;Satoshi.C.Watanabe@sony.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
<entry>
<title>media: cxd2880: Fix location of DVB headers</title>
<updated>2018-03-07T10:02:37Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2018-03-07T10:02:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7cbc3013f60dbc22955645443855c8f092d3c534'/>
<id>urn:sha1:7cbc3013f60dbc22955645443855c8f092d3c534</id>
<content type='text'>
Fix a trivial conflict, where the location of DVB headers
got moved.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
<entry>
<title>media: cxd2880-spi: Add support for CXD2880 SPI interface</title>
<updated>2018-03-07T09:39:19Z</updated>
<author>
<name>Yasunari Takiguchi</name>
</author>
<published>2018-01-18T08:46:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bd24fcddf6b822a6646b00cfc76a21f3f7bbc7e7'/>
<id>urn:sha1:bd24fcddf6b822a6646b00cfc76a21f3f7bbc7e7</id>
<content type='text'>
This is the SPI adapter part of the driver for the
Sony CXD2880 DVB-T2/T tuner + demodulator.

Signed-off-by: Yasunari Takiguchi &lt;Yasunari.Takiguchi@sony.com&gt;
Signed-off-by: Masayuki Yamamoto &lt;Masayuki.Yamamoto@sony.com&gt;
Signed-off-by: Hideki Nozawa &lt;Hideki.Nozawa@sony.com&gt;
Signed-off-by: Kota Yonezawa &lt;Kota.Yonezawa@sony.com&gt;
Signed-off-by: Toshihiko Matsumoto &lt;Toshihiko.Matsumoto@sony.com&gt;
Signed-off-by: Satoshi Watanabe &lt;Satoshi.C.Watanabe@sony.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
<entry>
<title>[media] gs1662: drop kfree for memory allocated with devm_kzalloc</title>
<updated>2016-10-24T19:59:08Z</updated>
<author>
<name>Wei Yongjun</name>
</author>
<published>2016-09-21T13:09:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=df94121f02ecce435d6b5277071eb94b764caa89'/>
<id>urn:sha1:df94121f02ecce435d6b5277071eb94b764caa89</id>
<content type='text'>
It's not necessary to free memory allocated with devm_kzalloc
and using kfree leads to a double free.

Fixes: 7aae6e2df127 ("[media] Add GS1662 driver, a video serializer")

Signed-off-by: Wei Yongjun &lt;weiyongjun1@huawei.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
<entry>
<title>[media] gs1662: remove .owner field for driver</title>
<updated>2016-10-24T19:58:17Z</updated>
<author>
<name>Wei Yongjun</name>
</author>
<published>2016-09-21T13:09:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b7491e7e902a488503982c9be098cac578a94bdc'/>
<id>urn:sha1:b7491e7e902a488503982c9be098cac578a94bdc</id>
<content type='text'>
Remove .owner field if calls are used which set it automatically.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: Wei Yongjun &lt;weiyongjun1@huawei.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
</feed>
