<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/net/can/usb/ems_usb.c, branch v3.18</title>
<subtitle>Linux Kernel (branches are rebased on master from time to time)</subtitle>
<id>https://sre.ring0.de/linux/atom?h=v3.18</id>
<link rel='self' href='https://sre.ring0.de/linux/atom?h=v3.18'/>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/'/>
<updated>2014-11-18T15:52:18Z</updated>
<entry>
<title>can: remove unused variable</title>
<updated>2014-11-18T15:52:18Z</updated>
<author>
<name>Sudip Mukherjee</name>
<email>sudipm.mukherjee@gmail.com</email>
</author>
<published>2014-11-18T13:47:06Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=4e2061b1e1f6b8e698b36a6518b6f8c15edc4547'/>
<id>urn:sha1:4e2061b1e1f6b8e698b36a6518b6f8c15edc4547</id>
<content type='text'>
these variable were only assigned some values, but then never
reused again.
so they are safe to be removed.

Signed-off-by: Sudip Mukherjee &lt;sudip@vectorindia.org&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: Unify MTU settings for CAN interfaces</title>
<updated>2014-03-17T08:20:16Z</updated>
<author>
<name>Oliver Hartkopp</name>
<email>socketcan@hartkopp.net</email>
</author>
<published>2014-03-07T08:23:41Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=c971fa2ae42e73e9ccc2f5e93f268c8742da4c5d'/>
<id>urn:sha1:c971fa2ae42e73e9ccc2f5e93f268c8742da4c5d</id>
<content type='text'>
CAN interfaces only support MTU values of 16 (CAN 2.0) and 72 (CAN FD).
Setting the MTU to other values is pointless but it does not really hurt.
With the introduction of the CAN FD support in drivers/net/can a new
function to switch the MTU for CAN FD has been introduced.

This patch makes use of this can_change_mtu() function to check for correct
MTU settings also in legacy CAN (2.0) devices.

Signed-off-by: Oliver Hartkopp &lt;socketcan@hartkopp.net&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>drivers/net: delete non-required instances of include &lt;linux/init.h&gt;</title>
<updated>2014-01-16T19:53:26Z</updated>
<author>
<name>Paul Gortmaker</name>
<email>paul.gortmaker@windriver.com</email>
</author>
<published>2014-01-08T20:32:47Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=a81ab36bf52d0ca3a32251a923be1dbced726141'/>
<id>urn:sha1:a81ab36bf52d0ca3a32251a923be1dbced726141</id>
<content type='text'>
None of these files are actually using any __init type directives
and hence don't need to include &lt;linux/init.h&gt;.   Most are just a
left over from __devinit and __cpuinit removal, or simply due to
code getting copied from one driver to the next.

This covers everything under drivers/net except for wireless, which
has been submitted separately.

Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>can: ems_usb: fix urb leaks on failure paths</title>
<updated>2013-12-17T10:19:11Z</updated>
<author>
<name>Alexey Khoroshilov</name>
<email>khoroshilov@ispras.ru</email>
</author>
<published>2013-12-06T23:10:35Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=a1c31f1d057130cc63e72a09189410d169db7ecf'/>
<id>urn:sha1:a1c31f1d057130cc63e72a09189410d169db7ecf</id>
<content type='text'>
There are a couple failure paths where urb leaks.
Is spare code within ems_usb_start_xmit(),
usb_free_urb() should be used to deallocate urb instead of usb_unanchor_urb().
In ems_usb_start() there is no usb_free_urb() if usb_submit_urb() fails.

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

Signed-off-by: Alexey Khoroshilov &lt;khoroshilov@ispras.ru&gt;
Acked-by: Sebastian Haas &lt;dev@sebastianhaas.info&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>
<email>joe@perches.com</email>
</author>
<published>2013-02-07T11:46:27Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/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>
<email>joe@perches.com</email>
</author>
<published>2013-02-03T17:28:09Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/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>
<entry>
<title>can: ems_usb: remove obsolete variable open_time</title>
<updated>2012-11-29T13:33:42Z</updated>
<author>
<name>Marc Kleine-Budde</name>
<email>mkl@pengutronix.de</email>
</author>
<published>2012-07-20T20:30:40Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=4480c008047d72a7d40e1e7fdc1d3b420ebcb955'/>
<id>urn:sha1:4480c008047d72a7d40e1e7fdc1d3b420ebcb955</id>
<content type='text'>
The variable open_time in the struct ems_usb was used to protect
ems_usb_set_mode() only to be called, if the interface is up. Now the CAN
device infrastructure takes care of this.

Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: mark bittiming_const pointer in struct can_priv as const</title>
<updated>2012-07-20T10:31:05Z</updated>
<author>
<name>Marc Kleine-Budde</name>
<email>mkl@pengutronix.de</email>
</author>
<published>2012-07-16T10:58:31Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=194b9a4cb91713ddb60c9f98f7212f6d8cb8e05f'/>
<id>urn:sha1:194b9a4cb91713ddb60c9f98f7212f6d8cb8e05f</id>
<content type='text'>
This patch marks the bittiming_const pointer as in the struct can_pric as
"const". This allows us to mark the struct can_bittiming_const in the CAN
drivers as "const", too.

Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: replace the dev_dbg/info/err/... with the new netdev_xxx macros</title>
<updated>2012-02-03T00:21:26Z</updated>
<author>
<name>Wolfgang Grandegger</name>
<email>wg@grandegger.com</email>
</author>
<published>2012-02-01T10:02:05Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=aabdfd6adb804d0aaba0188ade0f1afe42a52e31'/>
<id>urn:sha1:aabdfd6adb804d0aaba0188ade0f1afe42a52e31</id>
<content type='text'>
Cc: uclinux-dist-devel@blackfin.uclinux.org
Cc: Anant Gole &lt;anantgole@ti.com&gt;
Cc: Chris Elston &lt;celston@katalix.com&gt;
Cc: Sebastian Haas &lt;haas@ems-wuensche.com&gt;
Cc: Matthias Fuchs &lt;matthias.fuchs@esd.eu&gt;
Signed-off-by: Wolfgang Grandegger &lt;wg@grandegger.com&gt;
Acked-by: Sebastian Haas &lt;dev@sebastianhaas.info&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: ems_usb: Improved memory handling on ems_usb_start</title>
<updated>2012-02-03T00:21:25Z</updated>
<author>
<name>Sebastian Haas</name>
<email>dev@sebastianhaas.info</email>
</author>
<published>2011-12-22T22:58:34Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=2ee6850ca0cac95101d2a36c8b186b40d4fc7311'/>
<id>urn:sha1:2ee6850ca0cac95101d2a36c8b186b40d4fc7311</id>
<content type='text'>
Do not return from ems_usb_start if allocation fails. If not all URBs
could be allocated use the one already submitted.

Signed-off-by: Sebastian Haas &lt;dev@sebastianhaas.info&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
</feed>
