The patch titled ipc: replace kmalloc and memset in get_undo_list with kzalloc has been added to the -mm tree. Its filename is ipc-replace-kmalloc-and-memset-in-get_undo_list-with-kzalloc.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: ipc: replace kmalloc and memset in get_undo_list with kzalloc From: Matt Helsley <matthltc@xxxxxxxxxx> Simplify get_undo_list() by dropping the unnecessary cast, removing the size variable, and switching to kzalloc() instead of a kmalloc() followed by a memset(). This cleanup was split then modified from Jes Sorenson's Task Notifiers patches. Signed-off-by: Matt Helsley <matthltc@xxxxxxxxxx> Cc: Jes Sorensen <jes@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- ipc/sem.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff -puN ipc/sem.c~ipc-replace-kmalloc-and-memset-in-get_undo_list-with-kzalloc ipc/sem.c --- a/ipc/sem.c~ipc-replace-kmalloc-and-memset-in-get_undo_list-with-kzalloc +++ a/ipc/sem.c @@ -950,15 +950,12 @@ static inline void unlock_semundo(void) static inline int get_undo_list(struct sem_undo_list **undo_listp) { struct sem_undo_list *undo_list; - int size; undo_list = current->sysvsem.undo_list; if (!undo_list) { - size = sizeof(struct sem_undo_list); - undo_list = (struct sem_undo_list *) kmalloc(size, GFP_KERNEL); + undo_list = kzalloc(sizeof(*undo_list), GFP_KERNEL); if (undo_list == NULL) return -ENOMEM; - memset(undo_list, 0, size); spin_lock_init(&undo_list->lock); atomic_set(&undo_list->refcnt, 1); current->sysvsem.undo_list = undo_list; _ Patches currently in -mm which might be from matthltc@xxxxxxxxxx are process-events-header-cleanup.patch process-events-license-change.patch remove-unecessary-null-check-in-kernel-acctc.patch mark-profile-notifier-blocks-__read_mostly.patch ipc-replace-kmalloc-and-memset-in-get_undo_list-with-kzalloc.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html