aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2016-05-20 01:59:54 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-25 10:40:33 -0700
commita7cfaf165ed0f0b1e5e8636f9f28843b2b90139a (patch)
tree95b114e5cceb1064c9ce2a9eb020dd2cb5ad2ab3 /tools/perf/scripts/python
parentserial: Make SERIAL_MPS2_UART depend on ARCH_MPS2 (diff)
downloadlinux-a7cfaf165ed0f0b1e5e8636f9f28843b2b90139a.tar.gz
linux-a7cfaf165ed0f0b1e5e8636f9f28843b2b90139a.zip
serial: serial_core: Perform NULL checks for release/request_port ops
Doing the following UART bind/unbind sequence on a i.mx platform causes a kernel crash due to NULL pointer dereference: echo 21f4000.serial > /sys/bus/platform/drivers/imx-uart/bind echo 21f4000.serial > /sys/bus/platform/drivers/imx-uart/unbind Fix this problem by adding NULL checks prior to calling release/request_port ops. Reported-by: Fugang Duan <fugang.duan@nxp.com> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Tested-by: Fugang Duan <fugang.duan@nxp.com> Acked-by: Fugang Duan <fugang.duan@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions