linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] block: bd_start_claiming fix module refcount
@ 2010-05-25 15:50 Nick Piggin
  2010-05-25 15:51 ` [patch] block: bd_start_claiming cleanup Nick Piggin
  2010-05-25 17:03 ` [patch] block: bd_start_claiming fix module refcount Tejun Heo
  0 siblings, 2 replies; 4+ messages in thread
From: Nick Piggin @ 2010-05-25 15:50 UTC (permalink / raw)
  To: linux-fsdevel, Tejun Heo, Jens Axboe, Andrew Morton


bd_start_claiming has an unbalanced module_put introduced in 6b4517a79.

Signed-off-by: Nick Piggin <npiggin@suse.de>
---
Index: linux-2.6/fs/block_dev.c
===================================================================
--- linux-2.6.orig/fs/block_dev.c
+++ linux-2.6/fs/block_dev.c
@@ -738,6 +738,7 @@ static struct block_device *bd_start_cla
 		return ERR_PTR(-ENXIO);
 
 	whole = bdget_disk(disk, 0);
+	module_put(disk->fops->owner);
 	put_disk(disk);
 	if (!whole)
 		return ERR_PTR(-ENOMEM);

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-25 17:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-25 15:50 [patch] block: bd_start_claiming fix module refcount Nick Piggin
2010-05-25 15:51 ` [patch] block: bd_start_claiming cleanup Nick Piggin
2010-05-25 17:30   ` Tejun Heo
2010-05-25 17:03 ` [patch] block: bd_start_claiming fix module refcount Tejun Heo

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).