Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
otptool: Define value_start in
rev_id
path
Fixes: ``` Traceback (most recent call last): File "/usr/bin/otptool", line 29, in <module> tool.run(sys.argv) File "/usr/lib/python3.11/site-packages/socsec/otptool.py", line 2127, in run args.func(args) File "/usr/lib/python3.11/site-packages/socsec/otptool.py", line 2130, in make_otp_image self.otp.make_otp_image(args.config, File "/usr/lib/python3.11/site-packages/socsec/otptool.py", line 1335, in make_otp_image config_region, config_region_ignore = self.make_config_region( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/socsec/otptool.py", line 1042, in make_config_region offset_value = int(value, 16) - value_start ^^^^^^^^^^^ UnboundLocalError: cannot access local variable 'value_start' where it is not associated with a value ``` Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Reviewed-by: Neal Liu neal_liu@aspeedtech.com
- Loading branch information