diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-09-23 09:30:31 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-09-23 09:30:31 +0000 |
commit | 08d358dfffe4762cc920ac80aa1907498cd81382 (patch) | |
tree | 6a0c4f590bb4d21a2519b87732f8ad32ad990255 /target/linux/generic-2.6 | |
parent | f9f42992ea38e1d88c878f4628247701c1349871 (diff) | |
download | upstream-08d358dfffe4762cc920ac80aa1907498cd81382.tar.gz upstream-08d358dfffe4762cc920ac80aa1907498cd81382.tar.bz2 upstream-08d358dfffe4762cc920ac80aa1907498cd81382.zip |
kernel: check return code of nla_parse in pcomp_lzma on 2.6.31
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17683 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6')
-rw-r--r-- | target/linux/generic-2.6/patches-2.6.31/052-pcomp_lzma_support.patch | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.31/052-pcomp_lzma_support.patch b/target/linux/generic-2.6/patches-2.6.31/052-pcomp_lzma_support.patch index ff2302c987..48eb07de7e 100644 --- a/target/linux/generic-2.6/patches-2.6.31/052-pcomp_lzma_support.patch +++ b/target/linux/generic-2.6/patches-2.6.31/052-pcomp_lzma_support.patch @@ -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> @@ -636,6 +636,9 @@ + return -EINVAL; + + ret = nla_parse(tb, UNLZMA_DECOMP_MAX, p, len, NULL); ++ if (ret) ++ return ret; ++ + if (!tb[UNLZMA_DECOMP_OUT_BUFFERS]) + return -EINVAL; + |