diff options
author | Jeffy Chen <jeffy.chen@rock-chips.com> | 2017-06-27 12:34:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-30 11:21:52 +0300 |
commit | ffb7640acbc3f8a3366258ae0f281b1e98472ad4 (patch) | |
tree | 3403555ac3fd4832d66bd11497d10bf024ec689b /fs/ext2/ioctl.c | |
parent | 1b5fcb3b25f794957acbeec78800a18d4d0903b3 (diff) | |
download | linux-ffb7640acbc3f8a3366258ae0f281b1e98472ad4.tar.xz |
Bluetooth: cmtp: fix possible might sleep error in cmtp_session
commit f06d977309d09253c744e54e75c5295ecc52b7b4 upstream.
It looks like cmtp_session has same pattern as the issue reported in
old rfcomm:
while (1) {
set_current_state(TASK_INTERRUPTIBLE);
if (condition)
break;
// may call might_sleep here
schedule();
}
__set_current_state(TASK_RUNNING);
Which fixed at:
dfb2fae Bluetooth: Fix nested sleeps
So let's fix it at the same way, also follow the suggestion of:
https://lwn.net/Articles/628628/
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: AL Yu-Chen Cho <acho@suse.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ext2/ioctl.c')
0 files changed, 0 insertions, 0 deletions