freebsd-skq/sys/dev/hyperv
Andriy Gapon 8afecefd57 storvsc: fix auto-sense reporting
I saw a situation where the driver set CAM_AUTOSNS_VALID on a failed ccb
even though SRB_STATUS_AUTOSENSE_VALID was not set in the status.
The actual sense data remained all zeros.
The problem seems to be that create_storvsc_request() always sets
hv_storvsc_request::sense_info_len, so checking for sense_info_len != 0
is not enough to determine if any auto-sense data is actually available.

Reviewed by:	whu, imp
MFC after:	2 weeks
Sponsored by:	CyberSecure
Differential Revision:	https://reviews.freebsd.org/D30124
2021-05-07 10:17:57 +03:00
..
hvsock Add missing sockaddr length and family validation to various protocols 2021-05-03 13:35:19 -04:00
include HyperV socket implementation for FreeBSD 2020-05-20 11:03:59 +00:00
input hv_kbd: Fix build with EVDEV_SUPPORT kernel option disabled. 2021-04-23 01:13:25 +03:00
netvsc Hyper-V: hn: Initialize the internal field of per packet info on tx path 2021-03-15 10:33:29 +00:00
pcib Hyper-V: pcib: Check revoke status during device attach 2020-10-15 05:57:20 +00:00
storvsc storvsc: fix auto-sense reporting 2021-05-07 10:17:57 +03:00
utilities
vmbus x86: remove gcov kernel support 2021-04-02 15:41:51 +03:00