serial: cast before shifting on port io
authorAlan Cox <alan@linux.intel.com>
Tue, 6 Nov 2012 14:30:28 +0000 (14:30 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Nov 2012 00:59:58 +0000 (16:59 -0800)
commit7a876b39b5bc94f67e8a3a7adfd270b8c21fc762
tree8581c708900789b30fb177bdabe849315c9054b0
parent4bb535d2b6fe1466d89037c95945cc7bf5ba2377
serial: cast before shifting on port io

Without this we will shift data into oblivion and give wrong results on
some configurations

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c