aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware/google/vpd_decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firmware/google/vpd_decode.c')
-rw-r--r--drivers/firmware/google/vpd_decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/google/vpd_decode.c b/drivers/firmware/google/vpd_decode.c
index e75abe9fa122..6c7ab2ba85d2 100644
--- a/drivers/firmware/google/vpd_decode.c
+++ b/drivers/firmware/google/vpd_decode.c
@@ -62,7 +62,7 @@ static int vpd_decode_entry(const u32 max_len, const u8 *input_buf,
if (max_len - consumed < *entry_len)
return VPD_FAIL;
- consumed += decoded_len;
+ consumed += *entry_len;
*_consumed = consumed;
return VPD_OK;
}