Skip to content

Commit 8f9719e

Browse files
authored
Merge pull request #8 from sy-c/master
workaround munlock() failing
2 parents a880bfc + 26921d6 commit 8f9719e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

arch/linux_x86_uio/dma_buffer_inc.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,11 @@ DMABuffer_free
863863
}
864864

865865
if(munlock(buffer->map, buffer->length) != 0)
866-
{ ERROR_EXIT( errno, exit, "Buffer unlocking failed!\n" ); }
866+
{
867+
// report, but continue with release procedure even if unlock fails
868+
//ERROR_EXIT( errno, exit, "Buffer unlocking failed!\n" );
869+
ERROR( errno, "Buffer unlocking failed!\n" );}
870+
}
867871

868872
buffer->map = MAP_FAILED;
869873
persistant = PDA_DELETE;

0 commit comments

Comments
 (0)