Re: [kmod][PATCH] module: fix error path in kmod_module_probe_insert_module()

2019-05-28 Thread Lucas De Marchi
On Sun, May 26, 2019 at 11:25:12AM +0200, Bartosz Golaszewski wrote: From: Bartosz Golaszewski The documentation says that kmod_module_probe_insert_module() will return >0 if "stopped by a reason given in @flags" but it returns a negative value if KMOD_PROBE_FAIL_ON_LOADED flag is passed and

[kmod][PATCH] module: fix error path in kmod_module_probe_insert_module()

2019-05-26 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The documentation says that kmod_module_probe_insert_module() will return >0 if "stopped by a reason given in @flags" but it returns a negative value if KMOD_PROBE_FAIL_ON_LOADED flag is passed and the relevant module is already loaded. Fix the error path by using a