kfree calls match to inteface now

This commit is contained in:
Simon Pickartz 2011-05-31 01:57:48 -07:00
parent e7cae5599d
commit d1fd6d151f

View file

@ -91,7 +91,7 @@ static int iRCCE_mail_fetch(
if( header->tag == iRCCE_LAST_MAIL ) {
iRCCE_last_mail[rank] = 1;
iRCCE_mailbox_close( rank ); // we can close respective mailbox
free( header );
kfree( header, sizeof(iRCCE_MAIL_HEADER) );
}
else {
// check mail priority
@ -305,7 +305,7 @@ int iRCCE_mailbox_flush(void) {
while( erase_header != NULL ) {
iRCCE_mailbox_recv_queue[i] = iRCCE_mailbox_recv_queue[i]->next;
free( erase_header );
kfree( erase_header, sizeof(iRCCE_MAIL_HEADER) );
erase_header = iRCCE_mailbox_recv_queue[i];
}
}