diff options
author | Nicolas Frayer <nfrayer@baylibre.com> | 2022-12-30 01:14:04 +0100 |
---|---|---|
committer | Nishanth Menon <nm@ti.com> | 2023-03-08 01:06:30 -0600 |
commit | 5f1732a8683c1da8faaa90d6ffc3bd6d33013a58 (patch) | |
tree | fcc874cf0c1d13e05b1be5e0fa9573c9a3c19c2d /drivers/soc/ti/smartreflex.c | |
parent | fe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff) |
soc: ti: k3-ringacc: Add try_module_get() to k3_dmaring_request_dual_ring()
When the k3 ring accelerator driver has been modified to add module build
support, try_module_get() and module_put() have been added to update the
module refcnt. One code path has not been updated and it has introduced
an issue where the refcnt is decremented by module_put() in
k3_ringacc_ring_free() without being incremented previously.
Adding try_module_get() to k3_dmaring_request_dual_ring() ensures the
refcnt is kept up to date.
Fixes: c07f216a8b72 ("soc: ti: k3-ringacc: Allow the driver to be built as module")
Signed-off-by: Nicolas Frayer <nfrayer@baylibre.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20221230001404.10902-1-nfrayer@baylibre.com
Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'drivers/soc/ti/smartreflex.c')
0 files changed, 0 insertions, 0 deletions