mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 12:00:22 +09:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user