X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/1c79356b52d46aa6b508fb032f5ae709b1f2897b..150bd0745008d57c273e65929515dd6bbe568d83:/iokit/Families/IOSCSICDDrive/IOSCSICDDrive.cpp diff --git a/iokit/Families/IOSCSICDDrive/IOSCSICDDrive.cpp b/iokit/Families/IOSCSICDDrive/IOSCSICDDrive.cpp index 2c02c8df6..52691d032 100644 --- a/iokit/Families/IOSCSICDDrive/IOSCSICDDrive.cpp +++ b/iokit/Families/IOSCSICDDrive/IOSCSICDDrive.cpp @@ -579,6 +579,7 @@ IOSCSICDDrive::readTOC(IOMemoryDescriptor *buffer) req->setCDB( &scsiCDB ); req->setPointers(cx->senseDataDesc, 255, false, true); + buffer->retain(); /* bump the retain count */ cx->memory = buffer; req->setPointers( cx->memory, cx->memory->getLength(), false );