<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/can/mscan, branch linux-3.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.1.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.1.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2011-10-10T18:31:00Z</updated>
<entry>
<title>mscan: too much data copied to CAN frame due to 16 bit accesses</title>
<updated>2011-10-10T18:31:00Z</updated>
<author>
<name>Wolfgang Grandegger</name>
</author>
<published>2011-10-07T09:28:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a3a4bfde8a271df7ee56fcf31b8d907d50e7f216'/>
<id>urn:sha1:a3a4bfde8a271df7ee56fcf31b8d907d50e7f216</id>
<content type='text'>
Due to the 16 bit access to mscan registers there's too much data copied to
the zero initialized CAN frame when having an odd number of bytes to copy.
This patch ensures that only the requested bytes are copied by using an
8 bit access for the remaining byte.

Reported-by: Andre Naujoks &lt;nautsch@gmail.com&gt;
Signed-off-by: Oliver Hartkopp &lt;socketcan@hartkopp.net&gt;
Signed-off-by: Wolfgang Grandegger &lt;wg@grandegger.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>drivercore: revert addition of of_match to struct device</title>
<updated>2011-05-18T18:32:23Z</updated>
<author>
<name>Grant Likely</name>
</author>
<published>2011-05-18T17:19:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b1608d69cb804e414d0887140ba08a9398e4e638'/>
<id>urn:sha1:b1608d69cb804e414d0887140ba08a9398e4e638</id>
<content type='text'>
Commit b826291c, "drivercore/dt: add a match table pointer to struct
device" added an of_match pointer to struct device to cache the
of_match_table entry discovered at driver match time.  This was unsafe
because matching is not an atomic operation with probing a driver.  If
two or more drivers are attempted to be matched to a driver at the
same time, then the cached matching entry pointer could get
overwritten.

This patch reverts the of_match cache pointer and reworks all users to
call of_match_device() directly instead.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>net: can: mscan: fix build breakage in mpc5xxx_can</title>
<updated>2011-04-13T18:34:19Z</updated>
<author>
<name>Anatolij Gustschin</name>
</author>
<published>2011-04-12T23:49:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7c9f6472d46d07000c197e1d24fa2a332606968e'/>
<id>urn:sha1:7c9f6472d46d07000c197e1d24fa2a332606968e</id>
<content type='text'>
Commit 74888760d40b3ac9054f9c5fa07b566c0676ba2d
"dt/net: Eliminate users of of_platform_{,un}register_driver"
broke building mscan driver. Fix it.

Signed-off-by: Anatolij Gustschin &lt;agust@denx.de&gt;
Cc: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Acked-by: Wolfgang Grandegger &lt;wg@grandegger.com&gt;
Acked-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Fix common misspellings</title>
<updated>2011-03-31T14:26:23Z</updated>
<author>
<name>Lucas De Marchi</name>
</author>
<published>2011-03-31T01:57:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=25985edcedea6396277003854657b5f3cb31a628'/>
<id>urn:sha1:25985edcedea6396277003854657b5f3cb31a628</id>
<content type='text'>
Fixes generated by 'codespell' and manually reviewed.

Signed-off-by: Lucas De Marchi &lt;lucas.demarchi@profusion.mobi&gt;
</content>
</entry>
<entry>
<title>dt/net: Eliminate users of of_platform_{,un}register_driver</title>
<updated>2011-02-28T20:22:44Z</updated>
<author>
<name>Grant Likely</name>
</author>
<published>2011-02-23T04:05:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=74888760d40b3ac9054f9c5fa07b566c0676ba2d'/>
<id>urn:sha1:74888760d40b3ac9054f9c5fa07b566c0676ba2d</id>
<content type='text'>
Get rid of users of of_platform_driver in drivers/net.  The
of_platform_{,un}register_driver functions are going away, so the
users need to be converted to using the platform_bus_type directly.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;

</content>
</entry>
<entry>
<title>m68knommu: Remove dependencies on nonexistent M68KNOMMU</title>
<updated>2011-02-08T05:07:44Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2011-01-22T21:35:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=73020415564a3fe4931f3f70f500a5db13eea946'/>
<id>urn:sha1:73020415564a3fe4931f3f70f500a5db13eea946</id>
<content type='text'>
M68KNOMMU is set nowhere.

Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Signed-off-by: Greg Ungerer &lt;gerg@uclinux.org&gt;
</content>
</entry>
<entry>
<title>drivers/net/can: Update WARN uses</title>
<updated>2010-11-09T17:22:30Z</updated>
<author>
<name>Joe Perches</name>
</author>
<published>2010-10-30T11:08:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c389ff80d4b598f57d56aa807d396d4351cac8a4'/>
<id>urn:sha1:c389ff80d4b598f57d56aa807d396d4351cac8a4</id>
<content type='text'>
Add missing newlines.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>drivers/net/can/mscan/mpc5xxx_can.c: Add of_node_put to avoid memory leak</title>
<updated>2010-09-01T17:57:54Z</updated>
<author>
<name>Julia Lawall</name>
</author>
<published>2010-08-31T07:44:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aed5029ead26fe47527d9e9f2052cf56b72543f0'/>
<id>urn:sha1:aed5029ead26fe47527d9e9f2052cf56b72543f0</id>
<content type='text'>
Add a call to of_node_put in the error handling code following a call to
of_find_matching_node.

This patch also moves the existing call to of_node_put after the call to
iounmap in the error handling code, to make it possible to jump to
of_node_put without doing iounmap.  These appear to be disjoint operations,
so the ordering doesn't matter.

This patch furthermore changes the -ENODEV result in the error handling
code for of_find_matching_node to a return of 0, as found in the error
handling code for of_iomap, because the return type of the function is
unsigned.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// &lt;smpl&gt;
@r exists@
local idexpression x;
expression E,E1,E2;
statement S;
@@

*x =
(of_find_node_by_path
|of_find_node_by_name
|of_find_node_by_phandle
|of_get_parent
|of_get_next_parent
|of_get_next_child
|of_find_compatible_node
|of_match_node
|of_find_node_by_type
|of_find_node_with_property
|of_find_matching_node
|of_parse_phandle
)(...);
...
if (x == NULL) S
&lt;... when != x = E
*if (...) {
  ... when != of_node_put(x)
      when != if (...) { ... of_node_put(x); ... }
(
  return &lt;+...x...+&gt;;
|
*  return ...;
)
}
...&gt;
(
E2 = x;
|
of_node_put(x);
)
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;julia@diku.dk&gt;
Reviewed-by: Wolfram Sang &lt;w.sang@pengutronix.de&gt;
Acked-by: Wolfgang Grandegger &lt;wg@grandegger.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>of/device: Replace struct of_device with struct platform_device</title>
<updated>2010-08-06T15:25:50Z</updated>
<author>
<name>Grant Likely</name>
</author>
<published>2010-08-06T15:25:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2dc11581376829303b98eadb2de253bee065a56a'/>
<id>urn:sha1:2dc11581376829303b98eadb2de253bee065a56a</id>
<content type='text'>
of_device is just an alias for platform_device, so remove it entirely.  Also
replace to_of_device() with to_platform_device() and update comment blocks.

This patch was initially generated from the following semantic patch, and then
edited by hand to pick up the bits that coccinelle didn't catch.

@@
@@
-struct of_device
+struct platform_device

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Reviewed-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6</title>
<updated>2010-06-07T00:42:02Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2010-06-07T00:42:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eedc765ca4b19a41cf0b921a492ac08d640060d1'/>
<id>urn:sha1:eedc765ca4b19a41cf0b921a492ac08d640060d1</id>
<content type='text'>
Conflicts:
	drivers/net/sfc/net_driver.h
	drivers/net/sfc/siena.c
</content>
</entry>
</feed>
