Re: [PATCH v5 2/5] exfat: check return value of sb_min_blocksize in exfat_read_boot_sector

Christoph Hellwig
2025-11-04T11:01:54Z

On Tue, Nov 04, 2025 at 12:47:20AM +0800, Yongpeng Yang wrote:
> From: Yongpeng Yang <yangyongpeng@xiaomi.com>
>
> sb_min_blocksize() may return 0. Check its return value to avoid
> accessing the filesystem super block when sb->s_blocksize is 0.

Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>