parisc: Fix read buffer overflow in pdc_stable driver
authorRoel Kluin <roel.kluin@gmail.com>
Sun, 2 Aug 2009 08:02:28 +0000 (08:02 +0000)
committerHelge Deller <deller@gmx.de>
Sun, 2 Aug 2009 10:35:28 +0000 (12:35 +0200)
commit447c233da4d109c6194fefd69e5185cbc93cc062
treeaf44fe8e94480beee7f6e48fe6a527850f1eabce
parentb4f2e2ad5348063ef94aa623f6f09b52ecaf0990
parisc: Fix read buffer overflow in pdc_stable driver

Check whether index is within bounds before testing the element.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/parisc/pdc_stable.c