<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/phy/mscc, branch v4.20</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.20</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.20'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2018-10-23T02:27:14Z</updated>
<entry>
<title>phy: ocelot-serdes: fix out-of-bounds read</title>
<updated>2018-10-23T02:27:14Z</updated>
<author>
<name>Gustavo A. R. Silva</name>
<email>gustavo@embeddedor.com</email>
</author>
<published>2018-10-19T09:21:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6acb47d1a318e5b3b7115354ebc4ea060c59d3a1'/>
<id>urn:sha1:6acb47d1a318e5b3b7115354ebc4ea060c59d3a1</id>
<content type='text'>
Currently, there is an out-of-bounds read on array ctrl-&gt;phys,
once variable i reaches the maximum array size of SERDES_MAX
in the for loop.

Fix this by changing the condition in the for loop from
i &lt;= SERDES_MAX to i &lt; SERDES_MAX.

Addresses-Coverity-ID: 1473966 ("Out-of-bounds read")
Addresses-Coverity-ID: 1473959 ("Out-of-bounds read")
Fixes: 51f6b410fc22 ("phy: add driver for Microsemi Ocelot SerDes muxing")
Reviewed-by: Quentin Schulz &lt;quentin.schulz@bootlin.com&gt;
Signed-off-by: Gustavo A. R. Silva &lt;gustavo@embeddedor.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>phy: phy-ocelot-serdes: fix return value check in serdes_probe()</title>
<updated>2018-10-11T05:54:26Z</updated>
<author>
<name>Wei Yongjun</name>
<email>weiyongjun1@huawei.com</email>
</author>
<published>2018-10-10T02:00:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9047fa5d32942acbc017d2c2e2d0af3e6ce833ed'/>
<id>urn:sha1:9047fa5d32942acbc017d2c2e2d0af3e6ce833ed</id>
<content type='text'>
In case of error, the function syscon_node_to_regmap() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().

Fixes: 51f6b410fc22 ("phy: add driver for Microsemi Ocelot SerDes muxing")
Signed-off-by: Wei Yongjun &lt;weiyongjun1@huawei.com&gt;
Reviewed-by: Quentin Schulz &lt;quentin.schulz@bootlin.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>phy: add driver for Microsemi Ocelot SerDes muxing</title>
<updated>2018-10-05T21:36:44Z</updated>
<author>
<name>Quentin Schulz</name>
<email>quentin.schulz@bootlin.com</email>
</author>
<published>2018-10-04T12:22:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=51f6b410fc220d8a5a4fae00ebfd8243b6c11d4e'/>
<id>urn:sha1:51f6b410fc220d8a5a4fae00ebfd8243b6c11d4e</id>
<content type='text'>
The Microsemi Ocelot can mux SerDes lanes (aka macros) to different
switch ports or even make it act as a PCIe interface.

This adds support for the muxing of the SerDes.

Signed-off-by: Quentin Schulz &lt;quentin.schulz@bootlin.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
