commit | e6da1362b53004c416661ed0b1933f8f3c051414 | [log] [tgz] |
---|---|---|
author | Daniel Rosenberg <drosen@google.com> | Tue Aug 21 13:31:50 2018 -0700 |
committer | Daniel Rosenberg <drosen@google.com> | Thu Aug 30 15:12:19 2018 -0700 |
tree | 7896e3140fe82a77bff719a4c0bb98a7c4506ed4 | |
parent | a38145abaae3f624e5eac17087f8bfa225a35c88 [diff] |
staging: android: ion: check for kref overflow This patch is against 4.4. 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>