sparc: fix array overrun check in of_device_64.c
authorRobert Reif <reif@earthlink.net>
Fri, 26 Dec 2008 23:39:11 +0000 (15:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Dec 2008 23:39:11 +0000 (15:39 -0800)
commit92d9091f305cc32eb64edc1757d925b93acde6da
treeeddeec33e27e3eb5d5cf11c0c0e521c0305ea186
parente6b04fe0bae3c0c9204c8190c8988efa6646ef35
sparc: fix array overrun check in of_device_64.c

Do the array length check and fixup before copying the array.

Signed-off-by: Robert Reif <reif@earthlink.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/of_device_64.c