<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/net, branch v2.6.28</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=v2.6.28</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.28'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2008-12-19T03:41:42Z</updated>
<entry>
<title>ppp: fix segfaults introduced by netdev_priv changes</title>
<updated>2008-12-19T03:41:42Z</updated>
<author>
<name>James Chapman</name>
<email>jchapman@katalix.com</email>
</author>
<published>2008-12-17T12:02:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=739840d529eb7505d3cbfe9d468bf1440c9a8e27'/>
<id>urn:sha1:739840d529eb7505d3cbfe9d468bf1440c9a8e27</id>
<content type='text'>
This patch fixes a segfault in ppp_shutdown_interface() and
ppp_destroy_interface() when a PPP connection is closed. I bisected
the problem to the following commit:

  commit c8019bf3aff653cceb64f66489fc299ee5957b57
  Author: Wang Chen &lt;wangchen@cn.fujitsu.com&gt;
  Date:   Thu Nov 20 04:24:17 2008 -0800

    netdevice ppp: Convert directly reference of netdev-&gt;priv

    1. Use netdev_priv(dev) to replace dev-&gt;priv.
    2. Alloc netdev's private data by alloc_netdev().

    Signed-off-by: Wang Chen &lt;wangchen@cn.fujitsu.com&gt;
    Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;

The original ppp_generic code treated the netdev and struct ppp as
independent data structures which were freed separately. In moving the
ppp struct into the netdev, it is now possible for the private data to
be freed before the call to ppp_shutdown_interface(), which is bad.

The kfree(ppp) in ppp_destroy_interface() is also wrong; presumably
ppp hasn't worked since the above commit.

The following patch fixes both problems.

Signed-off-by: James Chapman &lt;jchapman@katalix.com&gt;
Reviewed-by: Wang Chen &lt;wangchen@cn.fujitsu.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>bnx2: Fix bug in bnx2_free_rx_mem().</title>
<updated>2008-12-18T03:06:08Z</updated>
<author>
<name>Michael Chan</name>
<email>mchan@broadcom.com</email>
</author>
<published>2008-12-18T03:06:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3298a7388c00227e736d1037328788073c80c7b4'/>
<id>urn:sha1:3298a7388c00227e736d1037328788073c80c7b4</id>
<content type='text'>
DMA memory for the jumbo rx page rings was freed incorrectly using the
wrong local variable as the array index.

Signed-off-by: Michael Chan &lt;mchan@broadcom.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>jme: Fixed a typo</title>
<updated>2008-12-17T08:26:37Z</updated>
<author>
<name>cwm97m</name>
<email>cwm97m@cse.nsysu.edu.tw</email>
</author>
<published>2008-12-16T20:28:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2fccd2814f8ebc8f1bd325dc46e11c333fc76ab3'/>
<id>urn:sha1:2fccd2814f8ebc8f1bd325dc46e11c333fc76ab3</id>
<content type='text'>
Found a typo.

Signed-off-by: Wei-Min Chen &lt;cwm97m@cse.nsysu.edu.tw&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: kernel BUG at drivers/net/phy/mdio_bus.c:165!</title>
<updated>2008-12-17T08:24:13Z</updated>
<author>
<name>Krzysztof Halasa</name>
<email>khc@pm.waw.pl</email>
</author>
<published>2008-12-17T08:24:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e8e5752dc0a56a01527055b0c37510b1d6b6b861'/>
<id>urn:sha1:e8e5752dc0a56a01527055b0c37510b1d6b6b861</id>
<content type='text'>
kernel BUG at drivers/net/phy/mdio_bus.c:165!
Unable to handle kernel NULL pointer dereference at virtual address 00000000

How?

mdiobus_alloc() sets bus-&gt;state = MDIOBUS_ALLOCATED.

mdiobus_register() sets bus-&gt;state = MDIOBUS_REGISTERED but then can
   fail (mdiobus_scan()) returning an error to the caller.

The caller aborts correctly with mdiobus_free() which does:
        if (bus-&gt;state == MDIOBUS_ALLOCATED) {
                kfree(bus);
                return;
        }

        BUG_ON(bus-&gt;state != MDIOBUS_UNREGISTERED);

Signed-off-by: Krzysztof Halasa &lt;khc@pm.waw.pl&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>drivers/net: starfire: Fix napi -&gt;poll() weight handling</title>
<updated>2008-12-16T23:42:20Z</updated>
<author>
<name>Jarek Poplawski</name>
<email>jarkao2@gmail.com</email>
</author>
<published>2008-12-16T23:42:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9a3de25544dadab1971847f28f33b1cd0d1770a6'/>
<id>urn:sha1:9a3de25544dadab1971847f28f33b1cd0d1770a6</id>
<content type='text'>
starfire napi -&gt;poll() handler can return work == weight after calling
netif_rx_complete() (if there is no more work). It is illegal and this
patch fixes it.

Reported-by: Alexander Huemer &lt;alexander.huemer@sbg.ac.at&gt;
Tested-by: Alexander Huemer &lt;alexander.huemer@sbg.ac.at&gt;
Signed-off-by: Jarek Poplawski &lt;jarkao2@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>tlan: Fix pci memory unmapping</title>
<updated>2008-12-16T23:22:41Z</updated>
<author>
<name>Sakari Ailus</name>
<email>sakari.ailus@iki.fi</email>
</author>
<published>2008-12-16T23:22:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=bb5f133dbc4f04b6388715d364ae5865455166c2'/>
<id>urn:sha1:bb5f133dbc4f04b6388715d364ae5865455166c2</id>
<content type='text'>
Fix pci unmapping problem introduced by commit id
8953f1282793882a5444924f7a273dc72a43d0a3 "tlan: Fix small (&lt; 64 bytes)
datagram transmissions".

Signed-off-by: Sakari Ailus &lt;sakari.ailus@iki.fi&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>enc28j60: use netif_rx_ni() to deliver RX packets</title>
<updated>2008-12-16T09:48:29Z</updated>
<author>
<name>Baruch Siach</name>
<email>baruch@tkos.co.il</email>
</author>
<published>2008-12-15T20:18:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2c413a6434dca02387a263dc4ca8009692421998'/>
<id>urn:sha1:2c413a6434dca02387a263dc4ca8009692421998</id>
<content type='text'>
The enc28j60 driver reads incoming packets in the process (workqueue) context,
not in a tasklet or the interrupt context.  Thus, we should use netif_rx_ni()
to deliver those packets to the networking layer, instead of netif_rx(). This
way incoming packets don't wait in the incoming queue for the next IRQ to be
serviced.

Signed-off-by: Baruch Siach &lt;baruch@tkos.co.il&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>tlan: Fix small (&lt; 64 bytes) datagram transmissions</title>
<updated>2008-12-16T09:44:05Z</updated>
<author>
<name>Sakari Ailus</name>
<email>sakari.ailus@iki.fi</email>
</author>
<published>2008-12-16T09:44:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=8953f1282793882a5444924f7a273dc72a43d0a3'/>
<id>urn:sha1:8953f1282793882a5444924f7a273dc72a43d0a3</id>
<content type='text'>
The TLAN chip does not support tranmissions smaller than 64
bytes. Smaller transfers need to be padded up to that size. This was
broken by commit id 41873e9aff0632d80c74380d58a89e8d420151bd ("tlan:
get rid of padding buffer").

&lt;URL:http://bugzilla.kernel.org/show_bug.cgi?id=11754&gt;

Signed-off-by: Sakari Ailus &lt;sakari.ailus@iki.fi&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>e1000e: fix double release of mutex</title>
<updated>2008-12-12T05:28:11Z</updated>
<author>
<name>Jeff Kirsher</name>
<email>jeffrey.t.kirsher@intel.com</email>
</author>
<published>2008-12-12T05:28:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=30bb0e0dce78427f3e5cb728d6b5ea73acbefffa'/>
<id>urn:sha1:30bb0e0dce78427f3e5cb728d6b5ea73acbefffa</id>
<content type='text'>
During a reset, releasing the swflag after it failed to be acquired would
cause a double unlock of the mutex.  Instead, test whether acquisition of
the swflag was successful and if not, do not release the swflag.  The reset
must still be done to bring the device to a quiescent state.

This resolves [BUG 12200] BUG: bad unlock balance detected! e1000e
http://bugzilla.kernel.org/show_bug.cgi?id=12200

Signed-off-by: Jeff Kirsher &lt;jeffrey.t.kirsher@intel.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sungem: improve ethtool output with internal pcs and serdes</title>
<updated>2008-12-09T23:39:14Z</updated>
<author>
<name>Hermann Lauer</name>
<email>Hermann.Lauer@iwr.uni-heidelberg.de</email>
</author>
<published>2008-12-09T23:39:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=fbf0229e946deb9e6c711f9eaa5c8d670c3a28fd'/>
<id>urn:sha1:fbf0229e946deb9e6c711f9eaa5c8d670c3a28fd</id>
<content type='text'>
From: Hermann Lauer &lt;Hermann.Lauer@iwr.uni-heidelberg.de&gt;

Attached is a patch which improves the output of ethtool (see below)
to some sensefull values with a sungem fibre card which uses the
sungem interal pcs connected to a serdes chip. The seriallink case in
the driver is untouched.

Most values are hardcoded, because gigabit fibre autoneg is anyways
limited and the driver don't really support much at the moment with
that hardware.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
