]> git.baikalelectronics.ru Git - kernel.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)
commit39e27b9744b07e86472ec649757d9ba4a9047c6a
tree9ee72b54c823162edfe0f0b5cbbe107532d9c190
parentdb39f5d6b2080c52bd822d3f484a431cfb25c967
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