# HG changeset patch # User Michael Spacefalcon # Date 1403471271 0 # Node ID 0eb7c63897172f3210d9585fb79ed34ac4791b27 # Parent 1d78af921a5ab0cdf11bd4038fbff9998f9f0308 os_mem_ir.c: os_DeallocatePartition() done diff -r 1d78af921a5a -r 0eb7c6389717 gsm-fw/gpf/osl/os_mem_ir.c --- a/gsm-fw/gpf/osl/os_mem_ir.c Sun Jun 22 21:01:32 2014 +0000 +++ b/gsm-fw/gpf/osl/os_mem_ir.c Sun Jun 22 21:07:51 2014 +0000 @@ -49,3 +49,13 @@ else return(OS_PARTITION_GUARD_PATTERN_DESTROYED); } + +GLOBAL LONG +os_DeallocatePartition(OS_HANDLE TaskHandle, T_VOID_STRUCT *Buffer) +{ + if (os_is_valid_partition(Buffer) != OS_OK) + return(OS_ERROR); + if (NU_Deallocate_Partition(Buffer) != NU_SUCCESS) + return(OS_ERROR); + return(OS_OK); +}