[PATCH v3] nvme: Fix handling of large MDTS values

Keith Busch kbusch at kernel.org
Fri Apr 2 02:49:16 BST 2021


On Thu, Apr 01, 2021 at 06:39:07PM -0700, Bart Van Assche wrote:
> Instead of triggering an integer overflow and undefined behavior if MDTS is
> large, set max_hw_sectors to UINT_MAX.

Looks good,

Reviewed-by: Keith Busch <kbusch at kernel.org>



More information about the Linux-nvme mailing list