Re: RFC: Boiler plate functions for ida / idr allocation?

From: Stefan Richter
Date: Wed Jul 13 2011 - 08:43:38 EST


On Jul 13 Jonathan Cameron wrote at LKML:
[...]
> Taking ida's first, how about the following patch? I'm not at
> all attached to the form it takes, merely to cutting out on the
> cut and paste.
>
> Note I've done only a few random places. There aren't that many ida
> users and I've only played with that for now.
>
> Remaining ida cases:
>
> drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c: (cleans up in case of out of range)
> drivers/scsi/osd/osd_uld.c: (locks not taken)
[...]

Boaz, Benny,

osd_uld.c::osd_minor_ida is accessed unsafely.
Device probe() and remove() methods are not globally serialized.
--
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/