diff options
author | Kees Cook <[email protected]> | 2024-07-16 14:57:06 -0700 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2024-08-05 22:28:13 +0530 |
commit | 5e5c793c7fc47219998465361d94510fdf55d83f (patch) | |
tree | f8086f6fc23e7a6ed137329c7b088f1822f42aab /drivers/usb/cdns3/cdns3-imx.c | |
parent | 2ebc36b9581df31eed271e5de61fc8a8b66dbc56 (diff) |
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 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions