aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorsatya priya <skakit@codeaurora.org>2020-03-06 12:17:07 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-12 10:10:27 +0100
commitf9d690b6ece7ec9a6ff6b588df95a010ab2d66f9 (patch)
tree3651c9eb88717c4eee817a4f95cceb33701debda /tools/perf/scripts/python/bin
parenttty: serial: ifx6x60: Convert to GPIO descriptors (diff)
downloadlinux-f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9.tar.gz
linux-f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9.zip
tty: serial: qcom_geni_serial: Allocate port->rx_fifo buffer in probe
To fix the RX cancel command failure, rx_fifo buffer needs to be flushed in stop_rx() by calling handle_rx().In handle_rx() the data in rx_fifo buffer is read and then dropped, not sent to upper layers. If set_termios is called before startup, by this time memory is not allocated to port->rx_fifo buffer, which leads to a NULL pointer dereference. To avoid this NULL pointer dereference allocate memory to port->rx_fifo in probe itself. Signed-off-by: satya priya <skakit@codeaurora.org> Reported-by: Stephen Boyd <swboyd@chromium.org> Link: https://lore.kernel.org/r/1583477228-32231-2-git-send-email-skakit@codeaurora.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions