]> git.karo-electronics.de Git - linux-beck.git/commit
chipidea: error on overflow for port_test_write
authorAlan <gnomes@lxorguk.ukuu.org.uk>
Mon, 15 Feb 2016 19:09:46 +0000 (19:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Feb 2016 04:15:57 +0000 (20:15 -0800)
commit3c724888d2b1e085cd45343dee5f233aec705439
tree9ee72b54c823162edfe0f0b5cbbe107532d9c190
parent0ca10122ca08d21e375b8c85bd7b498b1aeaf55d
chipidea: error on overflow for port_test_write

The write value is 8bit, but currently writing a larger number (eg a doubled
digit) is not errored but instead gets cast and sets off an action probably
undesired.

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