merge r17683 to 2.6.30
[openwrt/svn-archive/archive.git] / target / linux / generic-2.6 / patches-2.6.30 / 052-pcomp_lzma_support.patch
index 2626d0316bcfcb5f636292aacd2ea842fdf5e8c5..d20285c5cf2d6157a1e99aaefc7350464ede3c99 100644 (file)
@@ -1,6 +1,6 @@
 --- /dev/null
 +++ b/crypto/unlzma.c
-@@ -0,0 +1,772 @@
+@@ -0,0 +1,775 @@
 +/*
 + * LZMA uncompresion module for pcomp
 + * Copyright (C) 2009  Felix Fietkau <nbd@openwrt.org>
 +              return -EINVAL;
 +
 +      ret = nla_parse(tb, UNLZMA_DECOMP_MAX, p, len, NULL);
++      if (ret)
++              return ret;
++
 +      if (!tb[UNLZMA_DECOMP_OUT_BUFFERS])
 +              return -EINVAL;
 +