Re: [PATCH] sysctl: fix min/max handling in__do_proc_doulongvec_minmax()

From: Eric Dumazet
Date: Mon Oct 04 2010 - 06:38:32 EST


Le lundi 04 octobre 2010 Ã 18:35 +0800, AmÃrico Wang a Ãcrit :

> Your patch does fix the problem, but seems not a good solution,
> we should skip all min/max checking if ->extra(1|2) is NULL,
> instead of checking it every time within the loop.

Please do submit a patch, we'll see if you come to a better solution,
with no added code size (this is slow path, I dont care for checking it
'every time winthin the loop')







--
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/