From: Dean Nelson Date: Wed, 4 Feb 2009 23:12:24 +0000 (-0800) Subject: sgi-xp: fix writing past the end of kzalloc()'d space X-Git-Tag: v2.6.29-rc4~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=361916a943cd9dbda1c0b00879d0225cc919d868;p=pandora-kernel.git sgi-xp: fix writing past the end of kzalloc()'d space A missing type cast results in writing way beyond the end of a kzalloc()'d memory segment resulting in slab corruption. But it seems like the better solution is to define ->recv_msg_slots as a 'void *' rather than a 'struct xpc_notify_mq_msg_uv *' and add the type cast. Signed-off-by: Dean Nelson Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed