Re: [PATCH v3 2/7] usermodehelper: Export _exec() and _setup() functions

2013-03-12 Thread Andrew Morton
On Tue, 12 Mar 2013 18:52:54 -0300 Lucas De Marchi wrote: > On Tue, Mar 12, 2013 at 5:31 PM, Andrew Morton > wrote: > > On Mon, 11 Mar 2013 21:48:06 -0300 Lucas De Marchi > > wrote: > > > >> call_usermodehelper_setup() + call_usermodehelper_exec() need to be > >> called instead of call_usermo

Re: [PATCH v3 2/7] usermodehelper: Export _exec() and _setup() functions

2013-03-12 Thread Lucas De Marchi
On Tue, Mar 12, 2013 at 5:31 PM, Andrew Morton wrote: > On Mon, 11 Mar 2013 21:48:06 -0300 Lucas De Marchi > wrote: > >> call_usermodehelper_setup() + call_usermodehelper_exec() need to be >> called instead of call_usermodehelper_fns() when the cleanup function >> needs to be called even when an

Re: [PATCH v3 2/7] usermodehelper: Export _exec() and _setup() functions

2013-03-12 Thread Andrew Morton
On Mon, 11 Mar 2013 21:48:06 -0300 Lucas De Marchi wrote: > call_usermodehelper_setup() + call_usermodehelper_exec() need to be > called instead of call_usermodehelper_fns() when the cleanup function > needs to be called even when an ENOMEM error occurs. In this case using > call_usermodehelper_

[PATCH v3 2/7] usermodehelper: Export _exec() and _setup() functions

2013-03-11 Thread Lucas De Marchi
call_usermodehelper_setup() + call_usermodehelper_exec() need to be called instead of call_usermodehelper_fns() when the cleanup function needs to be called even when an ENOMEM error occurs. In this case using call_usermodehelper_fns() the user can't distinguish if the cleanup function was called o