[Patch] 2.5.70-bk11 zlib merge #2 return code

Jörn Engel (joern@wohnheim.fh-wedel.de)
Fri, 6 Jun 2003 21:28:14 +0200


Hi Linus!

Don't think anyone actually bothers to check specific error codes, but
it shouldn't hurt either.

Jörn

-- 
A surrounded army must be given a way out.
-- Sun Tzu

--- linux-2.5.70-bk11/lib/zlib_inflate/inftrees.c~zlib_merge_return 2003-06-06 20:47:11.000000000 +0200 +++ linux-2.5.70-bk11/lib/zlib_inflate/inftrees.c 2003-06-06 21:25:10.000000000 +0200 @@ -229,7 +229,7 @@ /* allocate new table */ if (*hn + z > MANY) /* (note: doesn't matter for fixed) */ - return Z_MEM_ERROR; /* not enough memory */ + return Z_DATA_ERROR; /* overflow of MANY */ u[h] = q = hp + *hn; *hn += z; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/