More coverity fixes

This commit is contained in:
Martin Holst Swende committed 2014-10-30 21:49:18 +01:00
1 parent 0ce5620254
commit ca4714cd23
6 files changed
+20 -7

No files matched your search

+1
View File
@@ -73,6 +73,7 @@ serial_port uart_open(const char* pcPortName)
// Does the system allows us to place a lock on this file descriptor
if (fcntl(sp->fd, F_SETLK, &fl) == -1) {
// A conflicting lock is held by another process
free(sp);
return CLAIMED_SERIAL_PORT;
}