diff options
author | Christian Marangi <[email protected]> | 2022-09-15 22:48:44 +0200 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2022-09-29 22:46:07 +0530 |
commit | 7c8765308371be30f50c1b5b97618b731514b207 (patch) | |
tree | 30331dd20519eb2e98d89b0cb9b0db84fed76e69 /lib/debugobjects.c | |
parent | 693e9c269e8e8fb16f1d7fac38bd774402722e87 (diff) |
dmaengine: qcom-adm: fix wrong sizeof config in slave_config
Fix broken slave_config function that uncorrectly compare the
peripheral_size with the size of the config pointer instead of the size
of the config struct. This cause the crci value to be ignored and cause
a kernel panic on any slave that use adm driver.
To fix this, compare to the size of the struct and NOT the size of the
pointer.
Fixes: 03de6b273805 ("dmaengine: qcom-adm: stop abusing slave_id config")
Signed-off-by: Christian Marangi <[email protected]>
Cc: [email protected] # v5.17+
Reviewed-by: Arnd Bergmann <[email protected]>
Reviewed-by: Dmitry Baryshkov <[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