]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/staging/dgnc/dgnc_tty.c
Staging: dgnc: release the lock before testing for nullity
authorQuentin Lambert <lambert.quentin@gmail.com>
Wed, 18 Mar 2015 13:21:08 +0000 (14:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 16:34:11 +0000 (17:34 +0100)
commit5ec293650827122df300581c17ca1d5de03bac3d
treec5026e4605c5a9650e94168c25f26ce1c133d60d
parent8ac7f9b37ebc6ae294a6ebbf8cd14d2bf3edc7b4
Staging: dgnc: release the lock before testing for nullity

The refactoring intrduced in
c84a083b995b ("Staging: dgnc: Use goto for spinlock release before return")
inverts the order in which the lock is released and ld is tested for nullity.

This patch restores the execution flow.

Fixes: c84a083b995b ("Staging: dgnc: Use goto for spinlock release before return")
Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_tty.c