aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/cpus.py
diff options
context:
space:
mode:
authorStephen Boyd <[email protected]>2023-04-13 13:55:28 -0700
committerStephen Boyd <[email protected]>2023-04-13 15:45:46 -0700
commitd1aae06630230daf747ef5bc291c19ea7f046129 (patch)
tree98401f569fd481dde7ad9af2201324ee4d9f8b29 /scripts/gdb/linux/cpus.py
parent601e5d464d535d655917c2cfb29c394d367fb676 (diff)
clk: starfive: Avoid casting iomem pointers
Let's use a wrapper struct for the auxiliary_device made in jh7110_reset_controller_register() so that we can stop casting iomem pointers. The casts trip up tools like sparse, and make for some awkward casts that are largely unnecessary. While we're here, change the allocation from devm and actually free the auxiliary_device memory in the release function. This avoids any use after free problems where the parent device driver is unbound from the device but the auxiliuary_device is still in use accessing devm freed memory. Cc: Tommaso Merciai <[email protected]> Cc: Emil Renner Berthing <[email protected]> Cc: Hal Feng <[email protected]> Cc: Conor Dooley <[email protected]> Cc: Xingyu Wu <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Fixes: edab7204afe5 ("clk: starfive: Add StarFive JH7110 system clock driver") Signed-off-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/cpus.py')
0 files changed, 0 insertions, 0 deletions