commit | 851df28045d7bb1d40db4b78d3c52aa613ab574a | [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:13:21 2018 -0700 |
tree | 3878b2454097aae01e11c4d603007e9931c7f26c | |
parent | a74374322156c67a936dfa29f9b3d9c86ee3ab23 [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>