aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorKai Song <[email protected]>2021-10-06 22:19:26 +0800
committerLee Jones <[email protected]>2021-11-05 14:40:26 +0000
commitfae2570d629cdd72f0611d015fc4ba705ae5422b (patch)
tree63803b59c2f0e39734b8b39575c57a7bbdf00cd9 /scripts/gdb/linux/utils.py
parent8616f7ee2cf6021361814a5842eb1ac9845bea21 (diff)
mfd: altera-sysmgr: Fix a mistake caused by resource_size conversion
The resource_size defines that: res->end - res->start + 1; The origin original code is: sysmgr_config.max_register = res->end - res->start - 3; So, the correct fix is that: sysmgr_config.max_register = resource_size(res) - 4; Fixes: d12edf9661a4 ("mfd: altera-sysmgr: Use resource_size function on resource object") Signed-off-by: Kai Song <[email protected]> Signed-off-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions