|
|
| version 1.1.4.4, 2012/05/23 13:53:00 | version 1.1.4.5, 2012/05/27 09:57:27 |
|---|---|
| Line 402 mpool_free(mpool_t * __restrict mp, void * __restrict | Line 402 mpool_free(mpool_t * __restrict mp, void * __restrict |
| int idx; | int idx; |
| struct tagAlloc *m, *tmp; | struct tagAlloc *m, *tmp; |
| assert(tmp); | |
| if (!mp) { | if (!mp) { |
| io_SetErr(EINVAL, "Pool not specified"); | io_SetErr(EINVAL, "Pool not specified"); |
| return -1; | return -1; |
| } | } |
| /* check address range & sentinel */ | /* check address range & sentinel */ |
| assert(!MEM_BADADDR(data) && !MEM_CORRUPT(data)); | |
| if (MEM_BADADDR(data) || MEM_CORRUPT(data)) { | if (MEM_BADADDR(data) || MEM_CORRUPT(data)) { |
| io_SetErr(EFAULT, "Corrupted memory address"); | io_SetErr(EFAULT, "Corrupted memory address"); |
| return -2; | return -2; |