summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/autoport/bd82x6x.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/autoport/bd82x6x.go b/util/autoport/bd82x6x.go
index 91538bd0d1..4a0f5031e8 100644
--- a/util/autoport/bd82x6x.go
+++ b/util/autoport/bd82x6x.go
@@ -105,7 +105,7 @@ func ich9GetFlashSize(ctx Context) {
highflkb := uint32(0)
for reg := uint16(0); reg < 5; reg++ {
fl := (inteltool.RCBA[0x3854+4*reg] >> 16) & 0x1fff
- flkb := fl << 2
+ flkb := (fl + 1) << 2
if flkb > highflkb {
highflkb = flkb
}