Commit d70dd771 authored by Thomas Gleixner's avatar Thomas Gleixner

hamradio: mkiss: semaphore cleanup

The usage of this "mutex" is non obvious and probably a completion in
some places. Make it a semaphore.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: David Miller <davem@davemloft.net>
parent 9b7a9168
......@@ -745,7 +745,7 @@ static int mkiss_open(struct tty_struct *tty)
spin_lock_init(&ax->buflock);
atomic_set(&ax->refcnt, 1);
init_MUTEX_LOCKED(&ax->dead_sem);
semaphore_init_locked(&ax->dead_sem);
ax->tty = tty;
tty->disc_data = ax;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment