All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] What if eth_init() fails?
Date: Wed, 14 Nov 2007 11:49:28 -0500	[thread overview]
Message-ID: <200711141149.31028.vapier@gentoo.org> (raw)
In-Reply-To: <473B1321.2090305@freescale.com>

On Wednesday 14 November 2007, Timur Tabi wrote:
> Upakul Barkakaty wrote:
> > Hi all, I observed that when the Ethernet initialization fails, it is
> > not properly halting the operation and exiting. On walking through the
> > Networking files, I saw that the eth_init() in eth.c either returns a 0
> > or 1. Now, in the NetLoop() in net.c file, from where the eth_init()
> > gets called, checks the condition if (eth_init(bd) < 0) { eth_halt();
> > return(-1); } which is thus never true. Thus the network operation,
> > never exits gracefully, if Ethernet init fails. Any of you, have any
> > clues about this??
>
> This is a known bug.  The problem is that it's been around for so long,
> people don't realize what's happening.  If you fix it, you might break
> something else.

so by fixing one bug, you may expose other bugs, and that's a bad thing ?  bad 
code has gotta go !
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20071114/ed3e560a/attachment.pgp 

  reply	other threads:[~2007-11-14 16:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-14  6:21 [U-Boot-Users] What if eth_init() fails? Upakul Barkakaty
2007-11-14 11:07 ` Detlev Zundel
2007-11-16  6:13   ` Upakul Barkakaty
2007-11-16 12:29     ` Detlev Zundel
2007-11-16 16:27       ` Detlev Zundel
2007-11-16 16:35     ` Wolfgang Denk
2007-11-14 15:08 ` Ben Warren
2007-11-14 15:24 ` Timur Tabi
2007-11-14 16:49   ` Mike Frysinger [this message]
2007-11-14 16:53     ` Timur Tabi
2007-11-14 17:00       ` Mike Frysinger
  -- strict thread matches above, loose matches on Subject: below --
2007-11-19  4:37 Upakul Barkakaty
2007-11-19 13:26 ` Wolfgang Denk

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=200711141149.31028.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=u-boot@lists.denx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.