diff --git a/trunk/linux-3.4.x/kernel/relay.c b/trunk/linux-3.4.x/kernel/relay.c index 94d0e76c6..027aa3250 100644 --- a/trunk/linux-3.4.x/kernel/relay.c +++ b/trunk/linux-3.4.x/kernel/relay.c @@ -166,7 +166,7 @@ static struct rchan_buf *relay_create_buf(struct rchan *chan) { struct rchan_buf *buf; - if (chan->n_subbufs > UINT_MAX / sizeof(size_t *)) + if (chan->n_subbufs > KMALLOC_MAX_SIZE / sizeof(size_t *)) return NULL; buf = kzalloc(sizeof(struct rchan_buf), GFP_KERNEL);