summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Llamas <cmllamas@google.com>2023-12-01 17:21:36 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-20 11:51:48 +0100
commitf4d6dbaa437617d41c2c5c3b746cd9a0c42f414b (patch)
tree8fdddee15641cc5e03dabb319e2d699fd9395c19
parent8040d704adce53d8ad5b37937caa4dc5b9edeb45 (diff)
downloadlinux-stable-f4d6dbaa437617d41c2c5c3b746cd9a0c42f414b.tar.gz
linux-stable-f4d6dbaa437617d41c2c5c3b746cd9a0c42f414b.tar.bz2
linux-stable-f4d6dbaa437617d41c2c5c3b746cd9a0c42f414b.zip
binder: fix comment on binder_alloc_new_buf() return value
commit e1090371e02b601cbfcea175c2a6cc7c955fa830 upstream. Update the comments of binder_alloc_new_buf() to reflect that the return value of the function is now ERR_PTR(-errno) on failure. No functional changes in this patch. Cc: stable@vger.kernel.org Fixes: 57ada2fb2250 ("binder: add log information for binder transaction failures") Reviewed-by: Alice Ryhl <aliceryhl@google.com> Signed-off-by: Carlos Llamas <cmllamas@google.com> Link: https://lore.kernel.org/r/20231201172212.1813387-8-cmllamas@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/android/binder_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/android/binder_alloc.c b/drivers/android/binder_alloc.c
index 89a598f7050c..5e2505fa82ff 100644
--- a/drivers/android/binder_alloc.c
+++ b/drivers/android/binder_alloc.c
@@ -557,7 +557,7 @@ err_alloc_buf_struct_failed:
* is the sum of the three given sizes (each rounded up to
* pointer-sized boundary)
*
- * Return: The allocated buffer or %NULL if error
+ * Return: The allocated buffer or %ERR_PTR(-errno) if error
*/
struct binder_buffer *binder_alloc_new_buf(struct binder_alloc *alloc,
size_t data_size,