ar71xx: add sanity checks to decode_rle
authorGabor Juhos <juhosg@openwrt.org>
Thu, 19 Apr 2012 21:31:40 +0000 (21:31 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Thu, 19 Apr 2012 21:31:40 +0000 (21:31 +0000)
commit8220e5ba0272a6f5eb8434314ed896987743a837
tree9387be7fb6c9e282e1c7ea22bddf963bd95a7ac5
parentc1886f54f6826b9809bde3ffc82be837df002220
ar71xx: add sanity checks to decode_rle

Also use -EINVAL instead of -1.

SVN-Revision: 31353
target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c