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:
Randall Huang <huangrandall@google.com>
Change-Id: I4f0bc416ae8f52bf4e4f88ba84a8db98513e165b
Loading
Please register or sign in to comment