On Tue, 16 Jul 2024 14:38:33 -0700, Kees Cook wrote: > With the new __counted_by annotation, the "lli_size" variable needs to > valid for accesses to the "lli" array. This requirement is not met in > stm32_dma3_chan_desc_alloc(), since "lli_size" starts at "0", so "lli" > index "0" will not be considered valid during the initialization for loop. > > Fix this by setting lli_size immediately after allocation (similar to > how this is handled in stm32_mdma_alloc_desc() for the node/count > relationship). > > [...] Applied, thanks! [1/1] dmaengine: stm32-dma3: Set lli_size after allocation commit: b53b831919a0dc4e6631ebe0497ab2a4d8bef014 Best regards, -- Vinod Koul <vkoul@xxxxxxxxxx>