ANDROID: binder: fix integer as NULL assignment

Fixes the following sparse warning:

  drivers/android/binder_alloc.c:883:25: warning: Using plain integer as NULL pointer

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202401190625.6EvaSCpr-lkp@intel.com/
Fixes: 63f7ddea2e ("ANDROID: binder: fix KMI-break due to address type change")
Change-Id: I1ac36c879c3396c1c4945602c1dfdc6e3b192b47
Signed-off-by: Carlos Llamas <cmllamas@google.com>
This commit is contained in:
Carlos Llamas
2024-02-01 23:11:53 +00:00
parent d632b78a61
commit 671218461d

View File

@@ -880,7 +880,7 @@ err_alloc_buf_struct_failed:
kfree(alloc->pages);
alloc->pages = NULL;
err_alloc_pages_failed:
alloc->buffer = 0;
alloc->buffer = NULL;
mutex_lock(&binder_alloc_mmap_lock);
alloc->buffer_size = 0;
err_already_mapped: