]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r302402: Fix ahci(4) driver attach to controller with 32 ports.
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 14 Jul 2016 00:26:57 +0000 (00:26 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 14 Jul 2016 00:26:57 +0000 (00:26 +0000)
commit745171ddef5837d9d05cebc7a64d3281be0f8a70
tree42168debe4d35b33fe6d80d921fa6e3fef52e937
parent4d1fc1c33c34deb348f4e24bc6e3838fc90534f0
MFC r302402: Fix ahci(4) driver attach to controller with 32 ports.

Incorrect sign expansion in variables that supposed to be a bit fields
caused infinite loop.  Fixing this allows system properly detect maximal
possible 32 devices configured on AHCI HBA of BHyVe.  That case did not
happen in a wild before due to lack of hardware AHCI HBAs with 32 ports.

git-svn-id: svn://svn.freebsd.org/base/stable/10@302791 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/ahci/ahci.c
sys/dev/ahci/ahci.h