hi Guys:

     I find a bug in modprobe.c:
     In the following case, modprobe will fail:
     First ins_mod a.ko, then ins_mod b.ko, b.ko depends on a.ko,b.ko will 
insmod failed.
     Because syscall will return to EPERM, but finit_module and init_module 
actually return EEXIST,
     and EEXIST is stored in errno.


    Finally, I found that rm_mod uses errno as the return value, so I think 
ins_mod should also use errno as the return value.


--


------------------------------------

thanks with best regards!

email:[email protected];[email protected]

phone:15850502564

 

Attachment: 0001-Modify-the-return-value-of-ins_mod-function-to-avoid.patch
Description: Binary data

_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to