]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod-module: check "new_from_name" return value in get_builtin
authorYauheni Kaliuta <ykaliuta@redhat.com>
Tue, 8 Jun 2021 06:29:22 +0000 (09:29 +0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 9 Jun 2021 17:21:15 +0000 (10:21 -0700)
commit64541d6aad210879e104e4796beeef49d4311f6d
treea2020753124bf2f4250f655134b356c514daaf3c
parentb6ecfc916a17eab8f93be5b09f4e4f845aabd3d1
libkmod-module: check "new_from_name" return value in get_builtin

kmod_module_new_from_name() may fail and return error value. It is
handled properly across the code, but in this particular place the
check is missing.

Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
libkmod/libkmod-module.c