Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2feb8068 authored by Randall Huang's avatar Randall Huang Committed by Pranav Vashi
Browse files

scsi/ufs: fix off-by-one error when printing err stat



The initial value of pos is zero.
This causes UFS driver to access err_hist->reg[-1].

Bug: 174649668
Signed-off-by: default avatarRandall Huang <huangrandall@google.com>
Change-Id: I4f0bc416ae8f52bf4e4f88ba84a8db98513e165b
parent 2b61cd7f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment