aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2024-07-16 21:57:06 +0000
committerVinod Koul <[email protected]>2024-08-05 16:58:13 +0000
commit5e5c793c7fc47219998465361d94510fdf55d83f (patch)
treef8086f6fc23e7a6ed137329c7b088f1822f42aab /lib/debugobjects.c
parentdmaengine: dw: Unify ret-val local variables naming (diff)
downloadkernel-5e5c793c7fc47219998465361d94510fdf55d83f.tar.gz
kernel-5e5c793c7fc47219998465361d94510fdf55d83f.zip
dmaengine: ti: omap-dma: Initialize sglen after allocation
With the new __counted_by annocation, the "sglen" struct member must be set before accessing the "sg" array. This initialization was done in other places where a new struct omap_desc is allocated, but these cases were missed. Set "sglen" after allocation. Fixes: b85178611c11 ("dmaengine: ti: omap-dma: Annotate struct omap_desc with __counted_by") Signed-off-by: Kees Cook <[email protected]> Reviewed-by: Gustavo A. R. Silva <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions