]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move CAM_UNQUEUED_INDEX setting to the last moment and under the periph lock.
authorAlexander Motin <mav@FreeBSD.org>
Wed, 23 Oct 2013 12:53:05 +0000 (12:53 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Wed, 23 Oct 2013 12:53:05 +0000 (12:53 +0000)
commitf1486b51634f0e55af1e81582095cccf7f7b4bf2
tree6fb8500ad59a40ecef72b6ca85104d6bbc73847f
parentbe9ddf431311cf096b37cac477de3f10b6adc21f
Move CAM_UNQUEUED_INDEX setting to the last moment and under the periph lock.
This fixes race condition with cam_periph_ccbwait(), causing use-after-free.
sys/cam/cam_xpt.c