Merge branch 'work.tty-ioctl' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-block.git] / drivers / bluetooth / hci_ldisc.c
index ae0dd57a8e9963e1ecfd86d5bf3beb0e1e98abd2..fbf7b4df23ab94ed2f3b3f2c4a75c3d6320283dd 100644 (file)
@@ -543,6 +543,8 @@ static void hci_uart_tty_close(struct tty_struct *tty)
        }
        clear_bit(HCI_UART_PROTO_SET, &hu->flags);
 
+       percpu_free_rwsem(&hu->proto_lock);
+
        kfree(hu);
 }