All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged] memstick-core-fix-device_register-error-handling.patch removed from -mm tree
@ 2011-01-13 20:09 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2011-01-13 20:09 UTC (permalink / raw)
  To: segooon, maximlevitsky, oakad, mm-commits


The patch titled
     memstick: core: fix device_register() error handling
has been removed from the -mm tree.  Its filename was
     memstick-core-fix-device_register-error-handling.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: memstick: core: fix device_register() error handling
From: Vasiliy Kulikov <segooon@gmail.com>

If device_register() fails then call put_device().  See comment to
device_register.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Alex Dubov <oakad@yahoo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/memstick/core/memstick.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/memstick/core/memstick.c~memstick-core-fix-device_register-error-handling drivers/memstick/core/memstick.c
--- a/drivers/memstick/core/memstick.c~memstick-core-fix-device_register-error-handling
+++ a/drivers/memstick/core/memstick.c
@@ -465,6 +465,7 @@ static void memstick_check(struct work_s
 		if (!host->card) {
 			host->card = card;
 			if (device_register(&card->dev)) {
+				put_device(&card->dev);
 				kfree(host->card);
 				host->card = NULL;
 			}
_

Patches currently in -mm which might be from segooon@gmail.com are

origin.patch
linux-next.patch


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

only message in thread, other threads:[~2011-01-13 20:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-13 20:09 [merged] memstick-core-fix-device_register-error-handling.patch removed from -mm tree akpm

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.