[PATCH 1/3][POWERPC][V2] of_serial: Fix possible null dereference.
Arnd Bergmann
arnd at arndb.de
Thu Apr 3 10:39:04 EST 2008
On Wednesday 02 April 2008, Grant Likely wrote:
> On Wed, Apr 2, 2008 at 10:52 AM, John Linn <john.linn at xilinx.com> wrote:
> > From: Stephen Neuendorffer <stephen.neuendorffer at xilinx.com>
> >
> > 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 at xilinx.com>
> > Signed-off-by: John Linn <john.linn at xilinx.com>
> Acked-by: Grant Likely <grant.likely at secretlab.ca>
Acked-by: Arnd Bergmann <arnd at arndb.de>
More information about the Linuxppc-dev
mailing list