diff options
author | Volker Ernst <volker.ernst@txtr.com> | 2010-10-13 11:03:57 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 10:20:10 -0700 |
commit | 4e4e66029af090c98cb10fafd13e8dd5039037a9 (patch) | |
tree | 3cbbbf3c4aabebc3c7ba3fc675c51956ec9f496b /drivers/serial/timbuart.c | |
parent | e5586eccc9aaf485985480e4d3049acffaa3fa90 (diff) | |
download | kernel_samsung_aries-4e4e66029af090c98cb10fafd13e8dd5039037a9.zip kernel_samsung_aries-4e4e66029af090c98cb10fafd13e8dd5039037a9.tar.gz kernel_samsung_aries-4e4e66029af090c98cb10fafd13e8dd5039037a9.tar.bz2 |
serial/imx: check that the buffer is non-empty before sending it out
The .start_tx callback (imx_start_tx here) isn't only called when the
buffer is non-empty. E.g. after resume or when handshaking is enabled
and the other side starts to signal being ready.
So check for an empty puffer already before sending the first character.
This prevents sending out stale (or uninitialised) data.
Signed-off-by: Volker Ernst <volker.ernst@txtr.com>
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Andy Green <andy@warmcat.com>
[ukl: reword commit log, put check in while condition]
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/serial/timbuart.c')
0 files changed, 0 insertions, 0 deletions