aboutsummaryrefslogtreecommitdiff
path: root/include/linux/loop.h
diff options
context:
space:
mode:
authorMitchel Humpherys <mitchelh@codeaurora.org>2014-05-23 13:01:22 -0700
committerMister Oyster <oysterized@gmail.com>2016-12-11 11:52:45 +0100
commit1286bf76de7611dc6b3f0ac38228d3c2e513b201 (patch)
tree66cae3255002df8284caefc603e9dc3933a11cc8 /include/linux/loop.h
parent98b4be487822c30d2e769c274178211530bc2804 (diff)
staging: ion: WARN when the handle kmap_cnt is going to wrap around
There are certain client bugs (double unmap, for example) that can cause the handle->kmap_cnt (an unsigned int) to wrap around from zero. This causes problems when the handle is destroyed because we have: while (handle->kmap_cnt) ion_handle_kmap_put(handle); which takes a long time to complete when kmap_cnt starts at ~0 and can result in a watchdog timeout. WARN and bail when kmap_cnt is about to wrap around from zero. Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org> Acked-by: Colin Cross <ccross@android.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/loop.h')
0 files changed, 0 insertions, 0 deletions