[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251117174315.367072-2-gulam.mohamed@oracle.com>
Date: Mon, 17 Nov 2025 17:43:15 +0000
From: Gulam Mohamed <gulam.mohamed@...cle.com>
To: linux-kernel@...r.kernel.org, hch@....de
Cc: stable@...r.kernel.org
Subject: [PATCH 2/2] Revert "block: don't add or resize partition on the disk with GENHD_FL_NO_PART"
This reverts commit 1a721de8489fa559ff4471f73c58bb74ac5580d3.
Cc: stable@...r.kernel.org
Signed-off-by: Gulam Mohamed <gulam.mohamed@...cle.com>
---
block/ioctl.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/block/ioctl.c b/block/ioctl.c
index d25b84441237..a260e39e56a4 100644
--- a/block/ioctl.c
+++ b/block/ioctl.c
@@ -20,8 +20,6 @@ static int blkpg_do_ioctl(struct block_device *bdev,
struct blkpg_partition p;
sector_t start, length;
- if (disk->flags & GENHD_FL_NO_PART)
- return -EINVAL;
if (!capable(CAP_SYS_ADMIN))
return -EACCES;
if (copy_from_user(&p, upart, sizeof(struct blkpg_partition)))
--
2.47.3
Powered by blists - more mailing lists