Subversion リポジトリの参照
Diff of /trunk/1.8.x/ccs-patch/security/ccsecurity/memory.c
Parent Directory
| Revision Log
| Patch
218 |
allocated_len = sizeof(*ptr) + len; |
allocated_len = sizeof(*ptr) + len; |
219 |
ptr = kzalloc(allocated_len, CCS_GFP_FLAGS); |
ptr = kzalloc(allocated_len, CCS_GFP_FLAGS); |
220 |
if (ccs_memory_ok(ptr, allocated_len)) { |
if (ccs_memory_ok(ptr, allocated_len)) { |
|
atomic_add(allocated_len, &ccs_policy_memory_size); |
|
221 |
ptr->entry.name = ((char *) ptr) + sizeof(*ptr); |
ptr->entry.name = ((char *) ptr) + sizeof(*ptr); |
222 |
memmove((char *) ptr->entry.name, name, len); |
memmove((char *) ptr->entry.name, name, len); |
223 |
atomic_set(&ptr->head.users, 1); |
atomic_set(&ptr->head.users, 1); |
|
Legend:
Removed from v.3697 |
|
changed lines |
|
Added in v.3698 |
|
|
| |