serial/arc-uart: Handle Rx Error Interrupts w/o any data
authorVineet Gupta <Vineet.Gupta1@synopsys.com>
Fri, 2 Aug 2013 04:49:19 +0000 (21:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Aug 2013 03:54:12 +0000 (11:54 +0800)
commit5284eba7b37dfeffe75bfdf81a13e9efebe0480a
tree488245e42b7e58d5e813cfd3de6f56c04c53c8a1
parentcb50e5235b8ae5aa0fe422eaaa8e444024c5bd98
serial/arc-uart: Handle Rx Error Interrupts w/o any data

Currently, Rx error handling only triggers if there is some Rx data.
Fix that by checking for error - before the data handling.

Reported-by: Mischa Jonker <mjonker@synopsys.com>
Tested-by: Mischa Jonker <mjonker@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/arc_uart.c