[PATCH] nvme: Report MDTS values that are too large

Christoph Hellwig hch at lst.de
Wed Mar 31 06:10:58 BST 2021


On Tue, Mar 30, 2021 at 08:42:14PM -0700, Bart Van Assche wrote:
> Instead of triggering an integer overflow and undefined behavior if MDTS is
> too large, set max_hw_sectors to UINT_MAX and log an error message.

I really do not think reporting an error for something that is
perfetly valid but not useful to Linux makes much sense.



More information about the Linux-nvme mailing list