Commit 9b7a9168 authored by Thomas Gleixner's avatar Thomas Gleixner

hamradio: 6pack: 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 a7817b3f
...@@ -606,7 +606,7 @@ static int sixpack_open(struct tty_struct *tty) ...@@ -606,7 +606,7 @@ static int sixpack_open(struct tty_struct *tty)
spin_lock_init(&sp->lock); spin_lock_init(&sp->lock);
atomic_set(&sp->refcnt, 1); atomic_set(&sp->refcnt, 1);
init_MUTEX_LOCKED(&sp->dead_sem); semaphore_init_locked(&sp->dead_sem);
/* !!! length of the buffers. MTU is IP MTU, not PACLEN! */ /* !!! length of the buffers. MTU is IP MTU, not PACLEN! */
......
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