]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: Avoid calling syscall() with -1
authorJan Luebbe <jlu@pengutronix.de>
Thu, 2 May 2013 14:47:12 +0000 (16:47 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sat, 11 May 2013 03:54:15 +0000 (00:54 -0300)
commit5eac795b8b067842caec32f96d55a7554c3c67f9
tree46679ea83400120d8dae8390d5b245177b33ee75
parent03f7dfb868b33ee73f2b1e36ab4a1bfa440dcd2c
libkmod: Avoid calling syscall() with -1

At least in qemu 1.4.1 for vexpress/arm-cortexa9, this resulted in an
illegal instruction error. Solve that by returning an error when
__NR_finit_module is -1.
libkmod/missing.h