]> www.infradead.org Git - users/dwmw2/linux.git/commit
serial: sprd: correct the wrong sequence of arguments
authorChunyan Zhang <chunyan.zhang@unisoc.com>
Thu, 5 Sep 2019 07:41:51 +0000 (15:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:18:15 +0000 (07:18 +0200)
commit3bf0e241c8136fde93f72d33b8485d43adf1234a
treee50f8963e9892891b9190c486d75fed9cd59b7d5
parent3049e5125169f4a59a7296fc75b639789a8f5c94
serial: sprd: correct the wrong sequence of arguments

commit 9c801e313195addaf11c16e155f50789d6ebfd19 upstream.

The sequence of arguments which was passed to handle_lsr_errors() didn't
match the parameters defined in that function, &lsr was passed to flag
and &flag was passed to lsr, this patch fixed that.

Fixes: b7396a38fb28 ("tty/serial: Add Spreadtrum sc9836-uart driver support")
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Signed-off-by: Chunyan Zhang <zhang.lyra@gmail.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20190905074151.5268-1-zhang.lyra@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sprd_serial.c