@@ -76,9 +76,6 @@
* has occurred. */
#define DSP_ECHANGEDURINGENUM (DSP_EBASE + 3)
-/* An error occurred while parsing the DSP executable file */
-#define DSP_ECORRUPTFILE (DSP_EBASE + 4)
-
/* A failure occurred during a delete operation */
#define DSP_EDELETE (DSP_EBASE + 5)
@@ -521,7 +521,7 @@ dsp_status nldr_create(OUT struct nldr_object **phNldr,
/* Parse memory segment data */
dload_segs = (u16) (*((u32 *) psz_coff_buf));
if (dload_segs > MAXMEMSEGS)
- status = DSP_ECORRUPTFILE;
+ status = -EBADF;
}
/* Parse dynamic load memory segments */
if (DSP_SUCCEEDED(status) && dload_segs > 0) {