]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: don't use %m on strbuf_to_vector() failure
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 4 Jun 2025 16:16:25 +0000 (17:16 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 11 Jun 2025 13:03:26 +0000 (08:03 -0500)
commita6217da17e0a9baee74a59b14d7c67578928b7e7
treef4e07fee2d06549d0f49dabb2d310b72d7702ffd
parenta5670807d2588d1a5fbe4498a3c832ac9c671d8f
libkmod: don't use %m on strbuf_to_vector() failure

The function does not set the errno on overflow conditions, so the ERR()
will produce (somewhat) arbitrary strerror. Similar to other places
throughout the code base - just use ENOMEM.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/368
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-builtin.c