Re: [PATCH] lib/idr.c: Zero memory properly in idr_remove_all

From: Stefan Richter
Date: Wed Jan 14 2009 - 04:53:17 EST


I wrote:
> Your fix only clears idr_layers which an idr_get_new*() pulls out of the
> idr_layer_cache, but not any one which it pulls out of the idr's own
> free list.
>
> Hmm, OK. Seems to be harmless as long as idr users don't start to add
> new entries to an idr after they did idr_remove_all()

...on this very same idr instance.
--
Stefan Richter
-=====-==--= ---= -===-
http://arcgraph.de/sr/
--
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/