diff --git a/drivers/staging/speakup/selection.c b/drivers/staging/speakup/selection.c index ca04d3669acc..507fc9a1776e 100644 --- a/drivers/staging/speakup/selection.c +++ b/drivers/staging/speakup/selection.c @@ -66,6 +66,7 @@ int speakup_set_selection(struct tty_struct *tty) if (ps > pe) { /* make sel_start <= sel_end */ int tmp = ps; + ps = pe; pe = tmp; }