| To: | Andrew Morton <akpm@xxxxxxxx> |
|---|---|
| Subject: | Re: register_netdevice return val fix |
| From: | "David S. Miller" <davem@xxxxxxxxxx> |
| Date: | Sun, 19 Oct 2003 00:07:55 -0700 |
| Cc: | netdev@xxxxxxxxxxx |
| In-reply-to: | <20031018190014.60ad6344.akpm@osdl.org> |
| References: | <20031018190014.60ad6344.akpm@osdl.org> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Sat, 18 Oct 2003 19:00:14 -0700 Andrew Morton <akpm@xxxxxxxx> wrote: > If the driver's init function returns an error code (most likely -ENODEV), > register_netdevice will stomp on it and will always return -EIO. > > You end up always getting an "Input/Output error" from modprobe, which is > confusing. > > Fix register_netdevice() to return the init function's error code, if it > looks sane. Looks fine, applied. Thanks Andrew. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] Prevent "eth0: driver changed get_stats after register" lying, David S. Miller |
|---|---|
| Next by Date: | Changing bonding <-> ifenslave interface [was: Problem with current /proc entries], Noam, Amir |
| Previous by Thread: | register_netdevice return val fix, Andrew Morton |
| Next by Thread: | Changing bonding <-> ifenslave interface [was: Problem with current /proc entries], Noam, Amir |
| Indexes: | [Date] [Thread] [Top] [All Lists] |