linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 38/38] bcma: add missing put_device call
       [not found] <1387465612-3673-33-git-send-email-levex@linux.com>
@ 2013-12-19 15:06 ` Levente Kurusa
  0 siblings, 0 replies; only message in thread
From: Levente Kurusa @ 2013-12-19 15:06 UTC (permalink / raw)
  To: LKML; +Cc: Levente Kurusa, Rafał Miłecki, linux-wireless

This is required so that we give up the last reference to the device.

Signed-off-by: Levente Kurusa <levex@linux.com>
---
 drivers/bcma/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c
index e15430a..5a9f6bd 100644
--- a/drivers/bcma/main.c
+++ b/drivers/bcma/main.c
@@ -176,6 +176,7 @@ static int bcma_register_cores(struct bcma_bus *bus)
 			bcma_err(bus,
 				 "Could not register dev for core 0x%03X\n",
 				 core->id.id);
+			put_device(&core->dev);
 			continue;
 		}
 		core->dev_registered = true;
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-12-19 15:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1387465612-3673-33-git-send-email-levex@linux.com>
2013-12-19 15:06 ` [PATCH 38/38] bcma: add missing put_device call Levente Kurusa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).