From: "J.A. Magallón" <jamagallon@ono.com>
To: Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.6.27-git3: rtl8169 oops and wireless missing symbols
Date: Tue, 14 Oct 2008 01:24:29 +0200 [thread overview]
Message-ID: <20081014012429.3f2924e3@werewolf.home> (raw)
In-Reply-To: <20081013.161228.74135367.davem@davemloft.net>
On Mon, 13 Oct 2008 16:12:28 -0700 (PDT), David Miller <davem@davemloft.net> wrote:
> From: "J.A. Magallón" <jamagallon@ono.com>
> Date: Tue, 14 Oct 2008 01:02:02 +0200
>
> > Booting .27-git3 on the Aspire One gave me a couple oopses.
>
> Fixed by:
>
> commit 738e1e694bf6d9e965ba0ce2667a1bec5780a172
> Author: Petr Vandrovec <petr@vandrovec.name>
> Date: Sun Oct 12 20:58:29 2008 -0700
>
> r8169: NULL pointer dereference on r8169 load
>
> mmio_addr in r8169 needs to be initialized before use
>
> Maybe that all tp-> initialization should be moved before rtl_init_mac_address call,
> but this is enough to get rid of crash in rtl_rar_set due to mmio_addr being uninitialized.
>
> Signed-off-by: Petr Vandrovec <petr@vandrovec.name>
> Signed-off-by: David S. Miller <davem@davemloft.net>
>
> diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
> index bdae2c5..c821da2 100644
> --- a/drivers/net/r8169.c
> +++ b/drivers/net/r8169.c
> @@ -2154,6 +2154,8 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
>
> spin_lock_init(&tp->lock);
>
> + tp->mmio_addr = ioaddr;
> +
> rtl_init_mac_address(tp, ioaddr);
>
> /* Get MAC address */
> @@ -2186,7 +2188,6 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
> #endif
>
> tp->intr_mask = 0xffff;
> - tp->mmio_addr = ioaddr;
> tp->align = cfg->align;
> tp->hw_start = cfg->hw_start;
> tp->intr_event = cfg->intr_event;
>
Thanks, this cured the rtl8169 part.
More problems with mmc on the go...
--
J.A. Magallon <jamagallon()ono!com> \ Software is like sex:
\ It's better when it's free
Mandriva Linux release 2009.0 (Cooker) for i586
Linux 2.6.25-jam18 (gcc 4.3.1 20080626 (GCC) #1 SMP
next prev parent reply other threads:[~2008-10-13 23:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-13 23:02 J.A. Magallón
2008-10-13 23:12 ` David Miller
2008-10-13 23:24 ` J.A. Magallón [this message]
2008-10-14 0:30 ` J.A. Magallón
2008-10-14 19:33 ` Francois Romieu
2008-10-14 20:03 ` J.A. Magallón
2008-10-14 23:39 ` Stefan Lippers-Hollmann
2008-10-13 23:24 ` John W. Linville
2008-10-13 23:44 ` J.A. Magallón
2008-10-14 16:59 ` John W. Linville
2008-10-14 0:23 ` Luis R. Rodriguez
2008-10-14 1:13 ` J.A. Magallón
2008-10-17 20:41 ` Stefanik Gábor
2008-10-17 21:24 ` Luis R. Rodriguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081014012429.3f2924e3@werewolf.home \
--to=jamagallon@ono.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®