From: Stephen Neuendorffer Date: Wed, 2 Apr 2008 16:52:13 +0000 (+1100) Subject: [POWERPC] of_serial: Fix possible null dereference. X-Git-Tag: v2.6.26-rc1~1125^2~82 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19a74263f49dce2b96e2213f7f4c029cedbbf0ce;p=pandora-kernel.git [POWERPC] of_serial: Fix possible null dereference. The of_serial driver queries the current-speed property and attempts to use it to register the custom_divisor property of the uart_port. However, if current-speed is not set, then this code will dereference a bad pointer. The fix is to only set custom_divisor when a current-speed property appears in the device tree. Signed-off-by: Stephen Neuendorffer Signed-off-by: John Linn Signed-off-by: Josh Boyer --- Reading git-diff-tree failed