commit | 7297ccbabcc9f0cdcb19f78ce4f074e49574c098 | [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:14 2018 -0700 |
tree | e09cc3940379088bf874eee3b311151d2b6addfc | |
parent | a9a4908ee67dc4c1364ddd92b0a2268399df155e [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>