diff options
| author | Sujeet Kumar <ksujeet@codeaurora.org> | 2016-01-28 11:18:13 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:10:03 -0700 |
| commit | 32abf3b67f7f57e792382e68bb6a79c1ec062fd8 (patch) | |
| tree | a4b3ecc6deb3328f2265e3f8a929caae0816f023 /include/linux/stringify.h | |
| parent | f5ae88ff3622603a46e86fd2ed8728c87e26b4b6 (diff) | |
USB: f_fs: Avoid using completion variable on stack
done completion variable is local stack variable to ffs_epfile_io().
It is being used to unblock ffs_epfile_io() from USB request
completion context where done is accessed through req->context. If
ffs_epfile_io() is unblocked or interrupted due to epfile close or
any signal before USB request completion is handled, req->context is
having stale "done" reference causing invalid access. Fix this issue
by storing done completion reference with epfile structure instead of
having it on stack to have valid req->context in completion handler.
Change-Id: I15102538d1b5bee14dfa3c7b3fa1f8e3f767cf71
Signed-off-by: Sujeet Kumar <ksujeet@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Diffstat (limited to 'include/linux/stringify.h')
0 files changed, 0 insertions, 0 deletions
