From d1fd6d151fff6bba32d4978c55d2d2c6c1cc6e1f Mon Sep 17 00:00:00 2001 From: Simon Pickartz Date: Tue, 31 May 2011 01:57:48 -0700 Subject: [PATCH] kfree calls match to inteface now --- arch/x86/scc/iRCCE_mailbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/scc/iRCCE_mailbox.c b/arch/x86/scc/iRCCE_mailbox.c index cd8783d8..4c235da9 100644 --- a/arch/x86/scc/iRCCE_mailbox.c +++ b/arch/x86/scc/iRCCE_mailbox.c @@ -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]; } }