]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Families/IOSCSICDDrive/IOSCSICDDrive.cpp
xnu-124.13.tar.gz
[apple/xnu.git] / iokit / Families / IOSCSICDDrive / IOSCSICDDrive.cpp
index 2c02c8df6c9b719ed1690fc63762bd92858662b8..52691d0323364db73f790f2a2269a9ba9940c7ef 100644 (file)
@@ -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 );