<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/mtd/devices/docg3.c, branch linux-4.12.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.12.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.12.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-04-19T20:05:56Z</updated>
<entry>
<title>mtd: docg3: switch to mtd_ooblayout_ops</title>
<updated>2016-04-19T20:05:56Z</updated>
<author>
<name>Boris Brezillon</name>
</author>
<published>2016-02-03T18:05:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1bd0b24737710697e0a850fb1983dcdce1d01196'/>
<id>urn:sha1:1bd0b24737710697e0a850fb1983dcdce1d01196</id>
<content type='text'>
Replace the nand_ecclayout definition by the equivalent mtd_ooblayout_ops
definition.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Acked-by: Robert Jarzmik &lt;robert.jarzmik@free.fr&gt;
</content>
</entry>
<entry>
<title>mtd: docg3: use mtd_set_ecclayout() where appropriate</title>
<updated>2016-04-19T20:05:55Z</updated>
<author>
<name>Boris Brezillon</name>
</author>
<published>2016-02-03T19:14:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=06af3b023c016bf97e39fbe22087b1d974f9e474'/>
<id>urn:sha1:06af3b023c016bf97e39fbe22087b1d974f9e474</id>
<content type='text'>
Use the mtd_set_ecclayout() helper instead of directly assigning the
mtd-&gt;ecclayout field.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Acked-by: Robert Jarzmik &lt;robert.jarzmik@free.fr&gt;
</content>
</entry>
<entry>
<title>mtd: kill the ecclayout-&gt;oobavail field</title>
<updated>2016-03-08T00:23:09Z</updated>
<author>
<name>Boris BREZILLON</name>
</author>
<published>2016-03-07T09:46:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f5b8aa78ef086248145363bf1ffe5ca4348b6a98'/>
<id>urn:sha1:f5b8aa78ef086248145363bf1ffe5ca4348b6a98</id>
<content type='text'>
ecclayout-&gt;oobavail is just redundant with the mtd-&gt;oobavail field.
Moreover, it prevents static const definition of ecc layouts since the
NAND framework is calculating this value based on the ecclayout-&gt;oobfree
field.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: docg3: off by one in doc_register_sysfs()</title>
<updated>2015-10-26T18:45:30Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2015-10-19T10:20:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2382960793c2480277ae98a891ea5aa566e06ff1'/>
<id>urn:sha1:2382960793c2480277ae98a891ea5aa566e06ff1</id>
<content type='text'>
Smatch found a bug in the error handling:

	drivers/mtd/devices/docg3.c:1634 doc_register_sysfs()
	error: buffer overflow 'doc_sys_attrs' 4 &lt;= 4

The problem is that if the very last device_create_file() fails, then we
are beyond the end of the array.  Actually, any time i == 3 then there
is a problem.  We can fix this an simplify the code at the same time by
moving the !ret conditions out of the for loops and using a goto
instead.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Acked-by: Robert Jarzmik &lt;robert.jarzmik@free.fr&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: devices: docg3: show parent device in sysfs</title>
<updated>2015-10-13T16:21:14Z</updated>
<author>
<name>Frans Klaver</name>
</author>
<published>2015-06-10T20:38:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1560d2132ae95b36b25cc78811af8eaf9bbb2f8e'/>
<id>urn:sha1:1560d2132ae95b36b25cc78811af8eaf9bbb2f8e</id>
<content type='text'>
Fix a bug where mtd parent device symlinks aren't shown in sysfs.

While at it, make use of the default owner value set by mtdcore.

Signed-off-by: Frans Klaver &lt;fransklaver@gmail.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: docg3: Fix kasprintf() usage</title>
<updated>2015-06-17T01:58:47Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2015-06-01T21:10:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0eb8618bd07533f423fed47399a0d6387bfe7cac'/>
<id>urn:sha1:0eb8618bd07533f423fed47399a0d6387bfe7cac</id>
<content type='text'>
kasprintf() does a dynamic memory allocation and can fail.
We have to handle that case.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: docg3: Don't leak docg3-&gt;bbt in error path</title>
<updated>2015-06-17T01:58:47Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2015-06-01T21:10:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=45c2ebd702a468d5037cf16aa4f8ea8d67776f6a'/>
<id>urn:sha1:45c2ebd702a468d5037cf16aa4f8ea8d67776f6a</id>
<content type='text'>
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: constify of_device_id array</title>
<updated>2015-05-07T06:44:07Z</updated>
<author>
<name>Fabian Frederick</name>
</author>
<published>2015-03-16T19:20:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=666104436543d171b8b1a7213fd1d8bbef1361d5'/>
<id>urn:sha1:666104436543d171b8b1a7213fd1d8bbef1361d5</id>
<content type='text'>
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick &lt;fabf@skynet.be&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: docg3: remove invalid __exit annotations</title>
<updated>2015-04-06T01:06:44Z</updated>
<author>
<name>Brian Norris</name>
</author>
<published>2015-03-31T16:53:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=45fd357a491ecc56c0f9bb110bd05d9caf28889f'/>
<id>urn:sha1:45fd357a491ecc56c0f9bb110bd05d9caf28889f</id>
<content type='text'>
The .remove callback may be used when detaching a device via sysfs, so
we can't expect to free up this memory.

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Acked-by: Robert Jarzmik &lt;robert.jarzmik@free.fr&gt;
</content>
</entry>
<entry>
<title>mtd: docg3: drop dead code</title>
<updated>2015-03-11T22:21:19Z</updated>
<author>
<name>Brian Norris</name>
</author>
<published>2015-03-09T17:18:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dc52499e7f2d9812cfa4aa3b8d84a3f2c97e068b'/>
<id>urn:sha1:dc52499e7f2d9812cfa4aa3b8d84a3f2c97e068b</id>
<content type='text'>
If no devices were found, we would already have skipped over this code.

Detected by Coverity, CID #744270

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Acked-by: Robert Jarzmik &lt;robert.jarzmik@free.fr&gt;
</content>
</entry>
</feed>
