add another lzma pcomp fix by jeff hansen - fixes cleanup at the end of do_lzma proce...
authorFelix Fietkau <nbd@openwrt.org>
Tue, 28 Jul 2009 09:07:07 +0000 (09:07 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 28 Jul 2009 09:07:07 +0000 (09:07 +0000)
SVN-Revision: 17036

target/linux/generic-2.6/patches-2.6.30/052-pcomp_lzma_support.patch

index 5a5b24f0a58482dc6a8c564b8e146a8afc86d645..75dfc376a6597e22eac86b40505377bc10f4aec8 100644 (file)
@@ -1,6 +1,6 @@
 --- /dev/null
 +++ b/crypto/unlzma.c
-@@ -0,0 +1,721 @@
+@@ -0,0 +1,723 @@
 +/*
 + * LZMA uncompresion module for pcomp
 + * Copyright (C) 2009  Felix Fietkau <nbd@openwrt.org>
 +              if (unlzma_should_stop(ctx))
 +                      break;
 +      }
++      if (likely(!unlzma_should_stop(ctx)))
++              rc_normalize(ctx);
 +
 +      return ctx->pos;
 +}