diff options
author | Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> | 2008-04-02 16:52:13 (GMT) |
---|---|---|
committer | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2008-04-03 01:29:32 (GMT) |
commit | 19a74263f49dce2b96e2213f7f4c029cedbbf0ce (patch) | |
tree | 07c4a2b28b8fcb452cc15ef19d065987bd4dd09c /drivers/serial/icom.h | |
parent | 5f91925c89c39e77c170de9366ffa5144a8dd8ec (diff) | |
download | linux-fsl-qoriq-19a74263f49dce2b96e2213f7f4c029cedbbf0ce.tar.xz |
[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 <stephen.neuendorffer@xilinx.com>
Signed-off-by: John Linn <john.linn@xilinx.com>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/serial/icom.h')
0 files changed, 0 insertions, 0 deletions