[PATCH] spl: fix error handling of spl_fit_read