netdev
[Top] [All Lists]

Re: register_netdevice return val fix

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>