- remove-bdput-from-do_open-in-fs-block_devc-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     remove-bdput-from-do_open-in-fs-block_devc-fix
has been removed from the -mm tree.  Its filename was
     remove-bdput-from-do_open-in-fs-block_devc-fix.patch

This patch was dropped because it was folded into remove-bdput-from-do_open-in-fs-block_devc.patch

------------------------------------------------------
Subject: remove-bdput-from-do_open-in-fs-block_devc-fix
From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>

Fix up blkdev_open() error-path refcounting.

Cc: Rafa³ Bilski <rafalbilski@xxxxxxxxxx>
Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Cc: Christoph Hellwig <hch@xxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/block_dev.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -puN fs/block_dev.c~remove-bdput-from-do_open-in-fs-block_devc-fix fs/block_dev.c
--- a/fs/block_dev.c~remove-bdput-from-do_open-in-fs-block_devc-fix
+++ a/fs/block_dev.c
@@ -1246,8 +1246,10 @@ static int blkdev_open(struct inode * in
 		return -ENOMEM;
 
 	res = do_open(bdev, filp, 0);
-	if (res)
+	if (res) {
+		bdput(bdev);
 		return res;
+	}
 
 	if (!(filp->f_flags & O_EXCL) )
 		return 0;
_

Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are

origin.patch
sparsemem-ensure-we-initialise-the-node-mapping-for-sparsemem_static.patch
serial-8250-handle-saving-the-clear-on-read-bits-from-the-lsr.patch
add-blacklisting-capability-to-serial_pci-to-avoid-misdetection.patch
free_irq-fix-debug_shirq-handling.patch
selectionh-add-tty_struct-forward-declaration.patch
newport_con-warning-fix.patch
remove-bdput-from-do_open-in-fs-block_devc.patch
remove-bdput-from-do_open-in-fs-block_devc-fix.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux