]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
staging: android: logger: reorder prepare_to_wait and mutex_lock
authorTim Bird <tim.bird@am.sony.com>
Wed, 8 Feb 2012 02:30:09 +0000 (18:30 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 00:52:44 +0000 (16:52 -0800)
commitc76c7ca31f16c9556cad527bfa3504b0aafb3045
treed384a290b028b84a82ee458ab8521788913eedb9
parent3bcfa431334d99fa8bff96c4e7c2108f0b26242e
staging: android: logger: reorder prepare_to_wait and mutex_lock

If mutex_lock waits, it will return in state TASK_RUNNING,
rubbing out the effect of prepare_to_wait().

Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/logger.c