commit | f5c3093122c0c02bc168c944975a42c12dc02aad | [log] [tgz] |
---|---|---|
author | Daniel Rosenberg <drosen@google.com> | Thu Aug 30 16:09:46 2018 -0700 |
committer | Daniel Rosenberg <drosen@google.com> | Fri Sep 14 15:29:15 2018 -0700 |
tree | 46a3fcd8780e917015392c1e939b8214a6a802b9 | |
parent | 413f26fc3d105c32493d5f38c0acc2eb1d3d1d44 [diff] |
staging: android: ion: check for kref overflow This patch is against 4.9. It does not apply to master due to a large rework of ion in 4.12 which removed the affected functions altogther. 4c23cbff073f3b9b ("staging: android: ion: Remove import interface") Userspace can cause the kref to handles to increment arbitrarily high. Ensure it does not overflow. Signed-off-by: Daniel Rosenberg <drosen@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>