From: Matthew Wilcox <matthew@wil.cx>
To: Stephen Hemminger <shemminger@linux-foundation.org>
Cc: bridge@linux-foundation.org, Jochen Voss <voss@seehuhn.de>,
netdev <netdev@vger.kernel.org>,
linux wireless list <linux-wireless@vger.kernel.org>,
Johannes Berg <johannes@sipsolutions.net>
Subject: [Bridge] Re: oops with recent wireless-dev tree
Date: Thu, 30 Aug 2007 08:58:41 -0600 [thread overview]
Message-ID: <20070830145840.GU14130@parisc-linux.org> (raw)
In-Reply-To: <20070830074949.7cd25b04@freepuppy.rosehill.hemminger.net>
On Thu, Aug 30, 2007 at 07:49:49AM -0700, Stephen Hemminger wrote:
> > > static int port_cost(struct net_device *dev)
> > > {
> > > if (dev->ethtool_ops->get_settings) {
> > > ^^^^
> > >
> > > As far as I can figure out, dev->ethtool_ops is NULL and the crash
> > > happens while trying to derefernce ...->get_settings.
>
> Devices aren't required to have ethtool_ops. The code there used to
> call ethtool directly, and it would handle the error cases. I'll rollup
> a fix this morning.
Yep, clearly my fault; that should read:
if (dev->ethtool_ops && dev->ethtool_ops->get_settings) {
Since Stephen's already bagged fixing this, I shan't send a patch.
But if it includes something like the line above please add:
Acked-by: Matthew Wilcox <matthew@wil.cx>
--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
next prev parent reply other threads:[~2007-08-30 14:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070829223752.GA6969@seehuhn.de>
[not found] ` <1188475530.2963.20.camel@johannes.berg>
2007-08-30 14:49 ` [Bridge] Re: oops with recent wireless-dev tree Stephen Hemminger
2007-08-30 14:58 ` Matthew Wilcox [this message]
2007-08-30 15:29 ` [Bridge] [PATCH] bridge: fix OOPS when bridging device without ethtool Stephen Hemminger
2007-08-30 16:48 ` [Bridge] " Matthew Wilcox
2007-08-31 5:16 ` David Miller
[not found] ` <1188486091.3978.32.camel@johannes.berg>
2007-08-30 15:45 ` [Bridge] Re: oops with recent wireless-dev tree Matthew Wilcox
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=20070830145840.GU14130@parisc-linux.org \
--to=matthew@wil.cx \
--cc=bridge@linux-foundation.org \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=shemminger@linux-foundation.org \
--cc=voss@seehuhn.de \
/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