commit | 33bc0b1764440314e137c1a80e5d7a020da3ca3c | [log] [tgz] |
---|---|---|
author | Daniel Rosenberg <drosen@google.com> | Tue Apr 04 14:27:16 2017 -0700 |
committer | chrmhoffmann <chrmhoffmann@gmail.com> | Sat Apr 11 17:46:45 2020 +0200 |
tree | 0cad5451099ceeacd83691945116af7fdd1dd728 | |
parent | 842c4c258d50b620f8b5ee5baecf4d2d2a972028 [diff] |
ANDROID: ion: Fix uninitialized variable Change-Id: Ia634b790661089ad01aca8e5975984435463d148 Signed-off-by: Daniel Rosenberg <drosen@google.com> Bug: 34276203 Fixes: Ibc36bc4405788ed0fea7337b541cad3be2b934c0 Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
diff --git a/drivers/gpu/ion/ion.c b/drivers/gpu/ion/ion.c index 2e7dd40..a2e41f7 100644 --- a/drivers/gpu/ion/ion.c +++ b/drivers/gpu/ion/ion.c
@@ -433,7 +433,7 @@ /* Must hold the client lock */ static int user_ion_handle_put_nolock(struct ion_handle *handle) { - int ret; + int ret = 0; if (--handle->user_ref_count == 0) ret = ion_handle_put_nolock(handle);