summaryrefslogtreecommitdiff
path: root/common/spl/spl_ext.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/spl/spl_ext.c')
-rw-r--r--common/spl/spl_ext.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/spl/spl_ext.c b/common/spl/spl_ext.c
index 76f49a5a8a6..c5478820a9b 100644
--- a/common/spl/spl_ext.c
+++ b/common/spl/spl_ext.c
@@ -51,8 +51,7 @@ int spl_load_image_ext(struct spl_image_info *spl_image,
goto end;
}
- spl_set_bl_len(&load, 1);
- load.read = spl_fit_read;
+ spl_load_init(&load, spl_fit_read, NULL, 1);
err = spl_load(spl_image, bootdev, &load, filelen, 0);
end: