Re: [GIT PULL] SPI fixes for v5.17-rc7

From: Linus Torvalds
Date: Thu Mar 10 2022 - 07:25:57 EST


On Thu, Mar 10, 2022 at 4:13 AM Mark Brown <broonie@xxxxxxxxxx> wrote:
>
> One fix for type conversion issues when working out maximum
> scatter/gather segment sizes which caused problems for some systems
> which where the limits overflow due to the type conversion.

Side note: 'ctrl->max_dma_len' is a 'size_t', so even 'unsigned int'
isn't necessarily a sufficient type.

Not that I see anything setting it to values that would cause
problems, but it looks conceptually like a similar problem as that
'max_seg_size' thing was.

Linus