diff options
| author | Andrew Bresticker <abrestic@chromium.org> | 2015-10-23 15:13:42 -0700 |
|---|---|---|
| committer | Mark Salyzyn <salyzyn@google.com> | 2016-07-18 15:03:46 -0700 |
| commit | 71b1886054473597c46a8a25c95477b5262971b5 (patch) | |
| tree | e5c031c210ee0bd944d2af00423b8e93ad3559ed /drivers/usb/class/cdc-acm.c | |
| parent | 160202a2e8a37baf7a1dcd3b3748a19ece5afe3e (diff) | |
CHROMIUM: android: binder: Fix potential scheduling-while-atomic
(cherry picked from commit 166b45af97359159f9585a836c9849e725e31fd6)
Commit f1e7f0a724f6 ("android: binder: Disable preemption while holding
the global binder lock.") re-enabled preemption around most of the sites
where calls to potentially sleeping functions were made, but missed
__alloc_fd(), which can sleep if the fdtable needs to be resized.
Re-enable preemption around __alloc_fd() as well as __fd_install() which
can now sleep in upstream kernels as of commit 8a81252b774b ("fs/file.c:
don't acquire files->file_lock in fd_install()").
BUG=chrome-os-partner:44012
TEST=Build and boot on Smaug.
Change-Id: I9819c4b95876f697e75b1b84810b6c520d9c33ec
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/308582
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Reviewed-by: Riley Andrews <riandrews@google.com>
Bug: 30141999
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
0 files changed, 0 insertions, 0 deletions
