diff options
author | Chunyan Zhang <[email protected]> | 2023-03-16 10:36:24 +0800 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2023-03-16 16:33:11 -0700 |
commit | 47d43086531f10539470a63e8ad92803e686a3dd (patch) | |
tree | ac5e2f26677e0c2bcf0163192579fdacdbddb9b6 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 5cf9d015be160e2d90d29ae74ef1364390e8fce8 (diff) |
clk: sprd: set max_register according to mapping range
In sprd clock driver, regmap_config.max_register was set to a fixed value
which is likely larger than the address range configured in device tree,
when reading registers through debugfs it would cause access violation.
Fixes: d41f59fd92f2 ("clk: sprd: Add common infrastructure")
Signed-off-by: Chunyan Zhang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions