I can see a possible issue with that commit. For an invalid sense value, sense_deferred with remain 0. and thus trigger the special logic.
From the rest of the code sense_deferred seem to only be valid in the case when sense_valid, but that is not checked.
Given the large amount of invalid sense output from hyper-v virtual machines, they would be very likely to trigger that exact code path.
I can see a possible issue with that commit. For an invalid sense value, sense_deferred with remain 0. and thus trigger the special logic.
From the rest of the code sense_deferred seem to only be valid in the case when sense_valid, but that is not checked.
Given the large amount of invalid sense output from hyper-v virtual machines, they would be very likely to trigger that exact code path.