Re: [PATCH] sgi-xp: fix writing past the end of kzalloc()'d space(v.2)

From: Andrew Morton
Date: Wed Feb 04 2009 - 14:58:01 EST


On Wed, 4 Feb 2009 12:36:41 -0600 Dean Nelson <dcn@xxxxxxx> wrote:

> Note that I'm using 'void *' instead of 'u8 *' to ->define recv_msg_slots.
> Currently they are equivalent in terms of the math, but 'void *' has the
> advantage of not needing to cast at all. Is this an appropriate choice?

I think so. void* is a nice way of saying "here's a blob of bytes".
It's a gcc extension to permit arithmetic on a void*, but we use that
one widely.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/