]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/iio: Add memory allocation failure check for trigger_name
authorZhu Jun <zhujun2@cmss.chinamobile.com>
Wed, 28 Aug 2024 09:31:29 +0000 (02:31 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 3 Sep 2024 17:49:44 +0000 (18:49 +0100)
commit3c6b818b097dd6932859bcc3d6722a74ec5931c1
tree1867b2ebc7a793dcfcefc31466ac4302884e9256
parentda83fd152e544c2222b2e098a3ce0f704617eb24
tools/iio: Add memory allocation failure check for trigger_name

Added a check to handle memory allocation failure for `trigger_name`
and return `-ENOMEM`.

Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
Link: https://patch.msgid.link/20240828093129.3040-1-zhujun2@cmss.chinamobile.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
tools/iio/iio_generic_buffer.c