commit | 89e84eeace5924f29a4f8f25cce9fcb083969974 | [log] [tgz] |
---|---|---|
author | Barry Song <barry.song@analog.com> | Wed Sep 16 04:36:29 2009 +0000 |
committer | Mike Frysinger <vapier@gentoo.org> | Tue Dec 15 00:13:46 2009 -0500 |
tree | 95f2471d436918a2673c2a636594ea6c119210a5 | |
parent | 298571249a1990cd3c6c6ab40250a4a9c18ab5d1 [diff] |
Blackfin: add some bounds checking to peripheral_request The requested peripheral is turned into an index into some state arrays, so make sure the calculated index doesn't exceed the index. This occurs when using bogus pin values or the define headers are screwed up. Now we'll notice right away that something needs fixing instead of trying to track down random memory corruption. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>