Changeset 80582 in vbox for trunk/src/VBox/Additions/linux/sharedfolders
- Timestamp:
- Sep 4, 2019 10:27:59 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/regops.c
r78204 r80582 348 348 if (pSrcIter->type & ITER_KVEC) 349 349 memcpy(pbDst, (void *)pSrcIter->iov->iov_base + pSrcIter->iov_offset, cbThisCopy); 350 else if ( !copy_from_user(pbDst, pSrcIter->iov->iov_base + pSrcIter->iov_offset, cbThisCopy))350 else if (copy_from_user(pbDst, pSrcIter->iov->iov_base + pSrcIter->iov_offset, cbThisCopy) != 0) 351 351 break; 352 352 pbDst += cbThisCopy; … … 387 387 if (pDstIter->type & ITER_KVEC) 388 388 memcpy((void *)pDstIter->iov->iov_base + pDstIter->iov_offset, pbSrc, cbThisCopy); 389 else if ( !copy_to_user(pDstIter->iov->iov_base + pDstIter->iov_offset, pbSrc, cbThisCopy)) {389 else if (copy_to_user(pDstIter->iov->iov_base + pDstIter->iov_offset, pbSrc, cbThisCopy) != 0) { 390 390 break; 391 391 }
Note:
See TracChangeset
for help on using the changeset viewer.