Skip to content

Commit

Permalink
IB/umad: Make user_mad semaphore a real one
Browse files Browse the repository at this point in the history
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Thomas Gleixner authored and Roland Dreier committed Sep 29, 2010
1 parent 605841f commit 557d054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/core/user_mad.c
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ static int ib_umad_init_port(struct ib_device *device, int port_num,

port->ib_dev = device;
port->port_num = port_num;
init_MUTEX(&port->sm_sem);
sema_init(&port->sm_sem, 1);
mutex_init(&port->file_mutex);
INIT_LIST_HEAD(&port->file_list);

Expand Down

0 comments on commit 557d054

Please sign in to comment.