• Luis R. Rodriguez's avatar
    modules: fix modparam async_probe request · e2f712dc
    Luis R. Rodriguez authored
    commit 4355efbd upstream.
    
    Commit f2411da7 ("driver-core: add driver module
    asynchronous probe support") added async probe support,
    in two forms:
    
      * in-kernel driver specification annotation
      * generic async_probe module parameter (modprobe foo async_probe)
    
    To support the generic kernel parameter parse_args() was
    extended via commit ecc86170 ("module: add extra
    argument for parse_params() callback") however commit
    failed to f2411da7 failed to add the required argument.
    
    This causes a crash then whenever async_probe generic
    module parameter is used. This was overlooked when the
    form in which in-kernel async probe support was reworked
    a bit... Fix this as originally intended.
    
    Cc: Hannes Reinecke <hare@suse.de>
    Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    Signed-off-by: default avatarLuis R. Rodriguez <mcgrof@suse.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> [minimized]
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    e2f712dc
module.c 102 KB