public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: johannes@sipsolutions.net
Cc: netdev@vger.kernel.org, kaber@trash.net
Subject: Re: rtnetlink: propagate error from dev_change_flags in do_setlink()
Date: Sun, 16 Nov 2008 23:21:00 -0800 (PST)	[thread overview]
Message-ID: <20081116.232100.91284662.davem@davemloft.net> (raw)
In-Reply-To: <1226841368.3644.6.camel@johannes.berg>

From: Johannes Berg <johannes@sipsolutions.net>
Date: Sun, 16 Nov 2008 14:16:08 +0100

> On Sun, 2008-11-16 at 14:10 +0100, Johannes Berg wrote:
> > Unlike ifconfig, iproute doesn't report an error when setting
> > an interface up fails:
> > 
> > (example: put wireless network mac80211 interface into repeater mode
> > with iwconfig but do not set a peer MAC address, it should fail with
> > -ENOLINK)
> > 
> > without patch:
> > # ip link set wlan0 up ; echo $?
> > 0
> > # 
> > 
> > with patch:
> > # ip link set wlan0 up ; echo $?
> > RTNETLINK answers: Link has been severed
> > 2
> > # 
> > 
> > Propagate the return value from dev_change_flags() to fix this.
> > 
> > Signed-off-by: Patrick McHardy <kaber@trash.net>
> > Tested-by: Johannes Berg <johannes@sipsolutions.net>
> > Signed-off-by: Johannes Berg <johannes@sipsolutions.net>

Patch applied.

> Maybe add
> Cc: stable@kernel.org [since the beginning of time^Wgit]
> 
> when committing? Not sure it's appropriate for stable since so far
> nobody complained, I suspect people just use the ioctl anyway.

I'll queue it up for -stable, thanks.

      reply	other threads:[~2008-11-17  7:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-16 13:10 rtnetlink: propagate error from dev_change_flags in do_setlink() Johannes Berg
2008-11-16 13:16 ` Johannes Berg
2008-11-17  7:21   ` David Miller [this message]

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=20081116.232100.91284662.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=johannes@sipsolutions.net \
    --cc=kaber@trash.net \
    --cc=netdev@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