[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080914.002906.48532607.anemo@mba.ocn.ne.jp>
Date: Sun, 14 Sep 2008 00:29:06 +0900 (JST)
From: Atsushi Nemoto <anemo@....ocn.ne.jp>
To: david@...es.net
Cc: paul.gortmaker@...il.com, akpm@...ux-foundation.org,
p_gortmaker@...oo.com, alan@...rguk.ukuu.org.uk, jeff@...zik.org,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH 1/2] [PATCH] ne.c fix rmmod, platform driver
improvements
On Sat, 13 Sep 2008 10:19:06 -0500, David Fries <david@...es.net> wrote:
> > For now rbtx49xx ne platform devices use -1 for pdev->id, but it may
> > change. Please don't assume it.
>
> Does this work?
> - if (0 <= this_dev && this_dev < MAX_NE_CARDS) {
> + if (!res) {
It should work (not tested: I have no access to the board few days),
but if someone defined ne platform device with pdev->id == -1 and he
forgot to declare IO resources, but things happen. Checking this_dev
range before accessing io[] array would be better.
---
Atsushi Nemoto
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists