summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2016-02-15 19:11:58 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-20 14:09:14 -0800
commit97007500ec3f9b08913ebec986068b9d250a6eed (patch)
tree798be73b21b415367120196171e936b2bca1ff06 /kernel
parent2bed074aade2caa9c350121837c55189a8fd197e (diff)
downloadop-kernel-dev-97007500ec3f9b08913ebec986068b9d250a6eed.zip
op-kernel-dev-97007500ec3f9b08913ebec986068b9d250a6eed.tar.gz
intel_th: sth: Sanitize packet callback's return values
According to the stm class interface, the packet callback should return an error if it is asked to generate packets that it doesn't support. When it succeeds, it should return number of bytes consumed from its payload. Currently, for FLAG packet it mistakenly returns 1. This patch addresses these issues. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud