]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix unterminated of_device_id array in legacy_serial.c
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 7 Jul 2008 06:39:50 +0000 (16:39 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Jul 2008 15:53:49 +0000 (08:53 -0700)
commit189e1bc7fe721e4998a8041cc217d59a225c90bf
tree3e47e57b1a685afc24f0e7c4122f2bc69a19385c
parent305c21cdb6f06cf385a544c26762ec83bd61f212
powerpc: Fix unterminated of_device_id array in legacy_serial.c

A recent patch to legacy_serial.c factored out some code by
using the of_match_node() facility to match a node against
an array of possible matches. However, the patch didn't properly
terminate the array causing potential crashes in cases where no
match is found. In addition, the name of the array was poorly
chosen for a static symbol making debugging harder.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/kernel/legacy_serial.c