diff options
author | Stanley Chu <[email protected]> | 2020-01-04 22:26:06 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2020-01-15 21:59:44 -0500 |
commit | 645728a6448fece4817acdb7efba7c19e5c3e311 (patch) | |
tree | fd45b04cb63d5ee06e7ccf9cb42ae3a40d539336 /drivers/fpga/fpga-bridge.c | |
parent | fdb827e4a3f84cb92e286a821114ac0ad79c8281 (diff) |
scsi: ufs: fix empty check of error history
Currently checking if an error history element is empty or not is by its
"value". In most cases, value is error code.
However this checking is not correct because some errors or events do not
specify any values in error history so values remain as 0, and this will
lead to incorrect empty checking.
Fix it by checking "timestamp" instead of "value" because timestamp will be
always assigned for all history elements
Cc: Alim Akhtar <[email protected]>
Cc: Asutosh Das <[email protected]>
Cc: Avri Altman <[email protected]>
Cc: Bart Van Assche <[email protected]>
Cc: Bean Huo <[email protected]>
Cc: Can Guo <[email protected]>
Cc: Matthias Brugger <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Bean Huo <[email protected]>
Signed-off-by: Stanley Chu <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions