ar71xx: add sanity checks to decode_rle
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 19 Apr 2012 21:31:40 +0000 (21:31 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 19 Apr 2012 21:31:40 +0000 (21:31 +0000)
commit9ec35a5650499d3f3b588d42b4d90a3c97d91feb
tree9387be7fb6c9e282e1c7ea22bddf963bd95a7ac5
parent4cb60d0721a61cdd741a1d96e7a81dfc06cd86f5
ar71xx: add sanity checks to decode_rle

Also use -EINVAL instead of -1.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31353 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c