We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccb282d commit 879d76bCopy full SHA for 879d76b
arch/linux_x86_uio/dma_buffer_inc.c
@@ -863,7 +863,16 @@ DMABuffer_free
863
}
864
865
if(munlock(buffer->map, buffer->length) != 0)
866
- { ERROR_EXIT( errno, exit, "Buffer unlocking failed!\n" ); }
+ {
867
+ #ifdef PDA_SKIP_UNLOCK_FAILURE
868
+ #pragma message "*** Compiling with PDA_SKIP_UNLOCK_FAILURE"
869
+ // report, but continue with release procedure even if unlock fails
870
+ ERROR( errno, "Buffer unlocking failed! (but releasing)\n" );
871
+ if(0) { goto exit; } // fake use of exit label to avoid compiler warning
872
+ #else
873
+ ERROR_EXIT( errno, exit, "Buffer unlocking failed!\n" );
874
+ #endif
875
+ }
876
877
buffer->map = MAP_FAILED;
878
persistant = PDA_DELETE;
0 commit comments