<div dir="ltr"><div>modprobe was failing if you `modprobe a.ko`, then `modprobe b.ko` where b.ko<br></div><div>depends on a.ko --- b.ko will fail to load because a.ko is already loaded.</div><div>The code to handle this was incorrectly checking `rc` rather than `errno`</div><div>against EEXIST.</div><div><br></div><div>(We should pull the insmod.c equivalent of `ins_mod` out into lib/</div><div>and reuse it in modprobe.c, but I didn't want to get bogged down.)</div><div><br></div><div>Bug: <a href="https://issuetracker.google.com/112069618">https://issuetracker.google.com/112069618</a></div><div>Reported-by: Wen Xie <<a href="mailto:xiewen3@motorola.com">xiewen3@motorola.com</a>></div><div>---</div><div> toys/pending/modprobe.c | 6 +++---</div><div> 1 file changed, 3 insertions(+), 3 deletions(-)</div><div><br></div></div>