binder: use kstrdup() in binderfs_binder_device_create()
authorDmitry Antipov <dmantipov@yandex.ru>
Thu, 26 Jun 2025 07:30:53 +0000 (10:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2025 12:11:20 +0000 (14:11 +0200)
commit1da2dca2fb3ab241da86890312f2bfb9c1d0d6c3
treec68913b879fdbb93f5484924075aa5eba0b277ae
parentdb15ec7abd33ce245120f36be91f56f0ba0b247e
binder: use kstrdup() in binderfs_binder_device_create()

In 'binderfs_binder_device_create()', use 'kstrdup()' to copy the
newly created device's name, thus making the former a bit simpler.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Acked-by: Carlos Llamas <cmllamas@google.com>
Reviewed-by: "Tiffany Y. Yang" <ynaffit@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250626073054.7706-1-dmantipov@yandex.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binderfs.c