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.27.16~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70a7607eecf3cf7dd4cd03627ff244ae7b3729e5;p=pandora-kernel.git sgi-xp: fix writing past the end of kzalloc()'d space commit 361916a943cd9dbda1c0b00879d0225cc919d868 upstream. 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed