aboutsummaryrefslogtreecommitdiff
path: root/src/lib/rmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/rmodule.c')
-rw-r--r--src/lib/rmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/rmodule.c b/src/lib/rmodule.c
index a3a74ac613..66d5120fee 100644
--- a/src/lib/rmodule.c
+++ b/src/lib/rmodule.c
@@ -294,10 +294,11 @@ int rmodule_stage_load(struct rmod_stage_load *rsl)
prog_set_area(rsl->prog, rmod_stage.location,
rmodule_memory_size(&rmod_stage));
- prog_set_entry(rsl->prog, rmodule_entry(&rmod_stage), NULL);
/* Allow caller to pick up parameters, if available. */
rsl->params = rmodule_parameters(&rmod_stage);
+ prog_set_entry(rsl->prog, rmodule_entry(&rmod_stage), rsl->params);
+
return 0;
}