]> err.no Git - linux-2.6/blobdiff - drivers/infiniband/core/uverbs.h
[IB] uverbs: Close some exploitable races
[linux-2.6] / drivers / infiniband / core / uverbs.h
index b1897bed14ad40174b834b359419f9a87f2ff6e5..cc124344dd2c72335cc8ebcb476cc66e4802e75d 100644 (file)
@@ -69,6 +69,7 @@ struct ib_uverbs_event_file {
 
 struct ib_uverbs_file {
        struct kref                             ref;
+       struct semaphore                        mutex;
        struct ib_uverbs_device                *device;
        struct ib_ucontext                     *ucontext;
        struct ib_event_handler                 event_handler;