Re: [PATCH] block: fix leaking minors of hidden disks

Keith Busch
2022-10-07T19:36:24Z

On Fri, Oct 07, 2022 at 12:32:34PM -0700, Keith Busch wrote:
> + if (disk->major == BLOCK_EXT_MAJOR)
> + blk_free_ext_minor(disk->first_minor);
> iput(disk->part0->bd_inode); /* frees the disk */
> }

Oops, the above is missing the check for the hidden flag. V2 coming.