git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1184 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2009-09-25 16:14:34 +00:00
parent 17a9b44ac4
commit b32e78903d
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ BufDescriptorEntry *EMACGetTransmitBuffer(void) {
if (!(cptr->w2 & W2_T_USED) ||
(cptr->w2 & W2_T_LOCKED)) {
chSysUnlock();
return FALSE;
return NULL;
}
cptr->w2 |= W2_T_LOCKED; /* Locks the buffer while copying.*/
if (++txptr >= &tent[EMAC_TRANSMIT_BUFFERS])