<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/can/usb, branch linux-3.11.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.11.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.11.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2013-11-29T18:42:14Z</updated>
<entry>
<title>can: kvaser_usb: fix usb endpoints detection</title>
<updated>2013-11-29T18:42:14Z</updated>
<author>
<name>Olivier Sobrie</name>
</author>
<published>2013-10-27T21:07:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4b43e0db0727d657864442c3c335cf04bc4c8ae7'/>
<id>urn:sha1:4b43e0db0727d657864442c3c335cf04bc4c8ae7</id>
<content type='text'>
commit 896e23bd04ea50a146dffd342e2f96180f0812a5 upstream.

Some devices, like the Kvaser Memorator Professional, have several bulk in
endpoints. Only the first one found must be used by the driver. The same holds
for the bulk out endpoint. The official Kvaser driver (leaf) was used as
reference for this patch.

Signed-off-by: Olivier Sobrie &lt;olivier@sobrie.be&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>can: pcan_usb: fix wrong memcpy() bytes length</title>
<updated>2013-08-12T04:51:49Z</updated>
<author>
<name>Stephane Grosjean</name>
</author>
<published>2013-08-09T09:44:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3c322a56b01695df15c70bfdc2d02e0ccd80654e'/>
<id>urn:sha1:3c322a56b01695df15c70bfdc2d02e0ccd80654e</id>
<content type='text'>
Fix possibly wrong memcpy() bytes length since some CAN records received from
PCAN-USB could define a DLC field in range [9..15].
In that case, the real DLC value MUST be used to move forward the record pointer
but, only 8 bytes max. MUST be copied into the data field of the struct
can_frame object of the skb given to the network core.

Cc: linux-stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Stephane Grosjean &lt;s.grosjean@peak-system.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>can: usb_8dev: fix urb leak on failure path in usb_8dev_start()</title>
<updated>2013-07-19T12:55:14Z</updated>
<author>
<name>Alexey Khoroshilov</name>
</author>
<published>2013-07-17T21:20:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7671986839f9207f8d76e8ef92b2d3f263a794cc'/>
<id>urn:sha1:7671986839f9207f8d76e8ef92b2d3f263a794cc</id>
<content type='text'>
If usb_8dev_start() fails to submit urb,
it unanchors the urb but forgets to free it.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov &lt;khoroshilov@ispras.ru&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>net: can: esd_usb2: check index of array before accessing</title>
<updated>2013-07-19T12:55:13Z</updated>
<author>
<name>Maximilian Schneider</name>
</author>
<published>2013-07-02T23:43:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=233a26e85f9a72bcd0cdb7a95d1d5abcd052369f'/>
<id>urn:sha1:233a26e85f9a72bcd0cdb7a95d1d5abcd052369f</id>
<content type='text'>
The esd_usb2_read_bulk_callback() function is parsing the data that comes from
the USB CAN adapter. One datum is used as an index to access the dev-&gt;nets[]
array. This patch adds the missing bounds checking.

Acked-by: Matthias Fuchs &lt;matthias.fuchs@esd.eu&gt;
Signed-off-by: Maximilian Schneider &lt;max@schneidersoft.net&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: usb_8dev: unregister netdev before free()ing</title>
<updated>2013-06-19T06:56:10Z</updated>
<author>
<name>Marc Kleine-Budde</name>
</author>
<published>2013-06-18T12:33:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4afe2156eb639e563d6ef0c2706b66ea400348b2'/>
<id>urn:sha1:4afe2156eb639e563d6ef0c2706b66ea400348b2</id>
<content type='text'>
The usb_8dev hardware has problems on some xhci USB hosts. The driver fails to
read the firmware revision in the probe function. This leads to the following
Oops:

    [ 3356.635912] kernel BUG at net/core/dev.c:5701!

The driver tries to free the netdev, which has already been registered, without
unregistering it.

This patch fixes the problem by unregistering the netdev in the error path.

Reported-by: Michael Olbrich &lt;m.olbrich@pengutronix.de&gt;
Reviewed-by: Bernd Krumboeck &lt;krumboeck@universalnet.at&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>net: can: peak_usb: Do not do dma on the stack</title>
<updated>2013-06-03T12:05:32Z</updated>
<author>
<name>Marc Kleine-Budde</name>
</author>
<published>2013-05-16T09:36:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f14e22435a27ef183bbfa78f77ad86644c0b354c'/>
<id>urn:sha1:f14e22435a27ef183bbfa78f77ad86644c0b354c</id>
<content type='text'>
smatch reports the following warnings:
drivers/net/can/usb/peak_usb/pcan_usb_pro.c:514 pcan_usb_pro_drv_loaded() error: doing dma on the stack (buffer)
drivers/net/can/usb/peak_usb/pcan_usb_pro.c:878 pcan_usb_pro_init() error: doing dma on the stack (&amp;fi)
drivers/net/can/usb/peak_usb/pcan_usb_pro.c:889 pcan_usb_pro_init() error: doing dma on the stack (&amp;bi)

See "Documentation/DMA-API-HOWTO.txt" section "What memory is DMA'able?"

Cc: Stephane Grosjean &lt;s.grosjean@peak-system.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>net: can: esd_usb2: Do not do dma on the stack</title>
<updated>2013-06-03T12:05:31Z</updated>
<author>
<name>Olivier Sobrie</name>
</author>
<published>2013-01-18T08:14:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fae37f81fdf3680c5d70abdc57e7b83f4b6c266a'/>
<id>urn:sha1:fae37f81fdf3680c5d70abdc57e7b83f4b6c266a</id>
<content type='text'>
smatch reports the following warnings:
drivers/net/can/usb/esd_usb2.c:640 esd_usb2_start() error: doing dma on the stack (&amp;msg)
drivers/net/can/usb/esd_usb2.c:846 esd_usb2_close() error: doing dma on the stack (&amp;msg)
drivers/net/can/usb/esd_usb2.c:855 esd_usb2_close() error: doing dma on the stack (&amp;msg)
drivers/net/can/usb/esd_usb2.c:923 esd_usb2_set_bittiming() error: doing dma on the stack (&amp;msg)
drivers/net/can/usb/esd_usb2.c:1047 esd_usb2_probe() error: doing dma on the stack (&amp;msg)
drivers/net/can/usb/esd_usb2.c:1053 esd_usb2_probe() error: doing dma on the stack (&amp;msg)

See "Documentation/DMA-API-HOWTO.txt" section "What memory is DMA'able?"

Signed-off-by: Olivier Sobrie &lt;olivier@sobrie.be&gt;
Cc: Matthias Fuchs &lt;matthias.fuchs@esd.eu&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>net: can: kvaser_usb: fix reception on "USBcan Pro" and "USBcan R" type hardware.</title>
<updated>2013-06-03T12:02:56Z</updated>
<author>
<name>Jonas Peterson</name>
</author>
<published>2013-05-07T20:05:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a90f13b24fb40d02d11496cce6a10ae8d4b319b2'/>
<id>urn:sha1:a90f13b24fb40d02d11496cce6a10ae8d4b319b2</id>
<content type='text'>
Unlike Kvaser Leaf light devices, some other Kvaser devices (like USBcan
Pro, USBcan R) receive CAN messages in CMD_LOG_MESSAGE frames. This
patch adds support for it.

Cc: linux-stable &lt;stable@vger.kernel.org&gt; # &gt;= v3.8
Signed-off-by: Jonas Peterson &lt;jonas.peterson@gmail.com&gt;
Signed-off-by: Olivier Sobrie &lt;olivier@sobrie.be&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>drivers: net: Remove remaining alloc/OOM messages</title>
<updated>2013-02-08T22:44:39Z</updated>
<author>
<name>Joe Perches</name>
</author>
<published>2013-02-07T11:46:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=14f8dc49532f765968ff37c3b99edbeb99004ace'/>
<id>urn:sha1:14f8dc49532f765968ff37c3b99edbeb99004ace</id>
<content type='text'>
alloc failures already get standardized OOM
messages and a dump_stack.

For the affected mallocs around these OOM messages:

Converted kmallocs with multiplies to kmalloc_array.
Converted a kmalloc/memcpy to kmemdup.
Removed now unused stack variables.
Removed unnecessary parentheses.
Neatened alignment.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Arend van Spriel &lt;arend@broadcom.com&gt;
Acked-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
Acked-by: John W. Linville &lt;linville@tuxdriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>can: Remove unnecessary alloc/OOM messages</title>
<updated>2013-02-04T18:22:33Z</updated>
<author>
<name>Joe Perches</name>
</author>
<published>2013-02-03T17:28:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=09da6c5f60ad2e2018366e47192a9ddbccfb3ac5'/>
<id>urn:sha1:09da6c5f60ad2e2018366e47192a9ddbccfb3ac5</id>
<content type='text'>
alloc failures already get standardized OOM
messages and a dump_stack.

Signed-off-by: Joe Perches &lt;joe@perches.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>
</feed>
