diff options
| author | Subhash Jadavani <subhashj@codeaurora.org> | 2015-12-10 17:38:22 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:02:02 -0700 |
| commit | 09ed2d9d3c0ab163954d5bd605c84ddfc76f1a99 (patch) | |
| tree | 7239925f90955cc202d2e86531c4fc818678acf6 /include/uapi/linux/ppdev.h | |
| parent | a627c73479155f8f0328d7bb1d0b8c9e17b7aa88 (diff) | |
block: don't allow nr_pending to go negative
nr_pending can go negative if we attempt to decrement it without matching
increment call earlier. If nr_pending goes negative, LLD's runtime suspend
might race with the ongoing request. This change allows decrementing
nr_pending only if it is non-zero.
Change-Id: I5f1e93ab0e0f950307e2e3c4f95c7cb01e83ffdd
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Diffstat (limited to 'include/uapi/linux/ppdev.h')
0 files changed, 0 insertions, 0 deletions
