diff options
author | Paul Fulghum <[email protected]> | 2019-01-01 12:28:53 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-01-18 13:27:54 +0100 |
commit | fc01d8c61ce02c034e67378cd3e645734bc18c8c (patch) | |
tree | 12229d9297234109fa24748654ea15c908c6073e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 352c4cf40c4a7d439fa5d30aa2160f54b394da82 (diff) |
tty/n_hdlc: fix __might_sleep warning
Fix __might_sleep warning[1] in tty/n_hdlc.c read due to copy_to_user
call while current is TASK_INTERRUPTIBLE. This is a false positive
since the code path does not depend on current state remaining
TASK_INTERRUPTIBLE. The loop breaks out and sets TASK_RUNNING after
calling copy_to_user.
This patch supresses the warning by setting TASK_RUNNING before calling
copy_to_user.
[1] https://syzkaller.appspot.com/bug?id=17d5de7f1fcab794cb8c40032f893f52de899324
Signed-off-by: Paul Fulghum <[email protected]>
Reported-by: syzbot <[email protected]>
Cc: Tetsuo Handa <[email protected]>
Cc: Alan Cox <[email protected]>
Cc: stable <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions