]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r359146: Fix SES on device slots without phys after r349321.
authorAlexander Motin <mav@FreeBSD.org>
Thu, 26 Mar 2020 00:42:31 +0000 (00:42 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Thu, 26 Mar 2020 00:42:31 +0000 (00:42 +0000)
commit9ee6eccd04f483f930fe0b013f27b59f6452f9a6
tree0f66cc66dfc0904921fa283a4c71388906ab060c
parent89fa6575cf9bcf4240e995bdbba05c8a566e6126
MFC r359146: Fix SES on device slots without phys after r349321.

Broadcom 9400-8i8e HBAs report virtual SES device, where slots representing
external connectors are reported having no phys.  Since sasdev_phys is NULL
there and proto_hdr is a union, ses_paths_iter() misinterpreted them as ATA.
Add explicit protocol check to properly differentiate them.
sys/cam/scsi/scsi_enc_ses.c