From d7da1b9f000f1519ff9cf9ce3b79f88735472db5 Mon Sep 17 00:00:00 2001
From: nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Tue, 28 Jul 2009 09:07:07 +0000
Subject: add another lzma pcomp fix by jeff hansen - fixes cleanup at the end
 of do_lzma processing

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17036 3c298f89-4303-0410-b956-a3cf2f4a3e73
---
 target/linux/generic-2.6/patches-2.6.30/052-pcomp_lzma_support.patch | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/target/linux/generic-2.6/patches-2.6.30/052-pcomp_lzma_support.patch b/target/linux/generic-2.6/patches-2.6.30/052-pcomp_lzma_support.patch
index 5a5b24f0a..75dfc376a 100644
--- a/target/linux/generic-2.6/patches-2.6.30/052-pcomp_lzma_support.patch
+++ b/target/linux/generic-2.6/patches-2.6.30/052-pcomp_lzma_support.patch
@@ -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>
@@ -526,6 +526,8 @@
 +		if (unlzma_should_stop(ctx))
 +			break;
 +	}
++	if (likely(!unlzma_should_stop(ctx)))
++		rc_normalize(ctx);
 +
 +	return ctx->pos;
 +}
-- 
cgit v1.2.3