mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 2/7] driver: Do not forget to remove device from active list
Date: Mon,  4 Apr 2011 15:09:40 +0200	[thread overview]
Message-ID: <1301922585-8144-3-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1301922585-8144-1-git-send-email-s.hauer@pengutronix.de>

Otherwise the remove function will be called twice leading
to bad effects.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 lib/driver.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/driver.c b/lib/driver.c
index ff92e44..4c10a49 100644
--- a/lib/driver.c
+++ b/lib/driver.c
@@ -147,6 +147,7 @@ int unregister_device(struct device_d *old_dev)
 		old_dev->bus->remove(old_dev);
 
 	list_del(&old_dev->list);
+	list_del(&old_dev->active);
 
 	/* remove device from parents child list */
 	if (old_dev->parent)
-- 
1.7.2.3


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2011-04-04 13:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-04 13:09 various fixes and updates Sascha Hauer
2011-04-04 13:09 ` [PATCH 1/7] arm: update mach-types Sascha Hauer
2011-04-04 13:09 ` Sascha Hauer [this message]
2011-04-04 13:09 ` [PATCH 3/7] memcpy command: do not set read/write size Sascha Hauer
2011-04-04 13:09 ` [PATCH 4/7] mmc: check correctness of the voltage mask in ocr Sascha Hauer
2011-04-04 13:09 ` [PATCH 5/7] fs: errno should be set correctly before the end of functions Sascha Hauer
2011-04-04 13:09 ` [PATCH 6/7] usbnet: do not initialize ethernet device from usb device Sascha Hauer
2011-04-04 13:09 ` [PATCH 7/7] ARM: Add missing parameter name Sascha Hauer

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=1301922585-8144-3-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.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