]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sccnxp: Fix possible crash if no platform data supplied
authorAlexander Shiyan <shc_work@mail.ru>
Thu, 17 Jan 2013 14:34:45 +0000 (18:34 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2013 01:31:24 +0000 (17:31 -0800)
commitcd63a7a7626450b4d636bc229f542c62c3fa8972
tree4d0179bee370162a17122a462cce2f36f539da1a
parentbc3edc9ad7d18ba46a847cb1a1a87c6768e75783
serial: sccnxp: Fix possible crash if no platform data supplied

This patch fix possible kernel crash if no platform data supplied.
We should not use platform data in this case, instead we will use
default values from private driver structure.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sccnxp.c