diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-02-24 13:33:25 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-04 07:52:31 +0100 |
| commit | 72db61d7d17a475d3cc9de1a7c871d518fcd82f0 (patch) | |
| tree | b8ccc0ccc2965a051dbe49c0d962da0d108dcd48 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 580f57c2cf616fe09f0823bfcd1bfc26b2cb4fbe (diff) | |
| download | cachepc-linux-72db61d7d17a475d3cc9de1a7c871d518fcd82f0.tar.gz cachepc-linux-72db61d7d17a475d3cc9de1a7c871d518fcd82f0.zip | |
staging: kpc2000: prevent underflow in cpld_reconfigure()
This function should not allow negative values of "wr_val". If
negatives are allowed then capping the upper bound at 7 is
meaningless. Let's make it unsigned.
Fixes: 7dc7967fc39a ("staging: kpc2000: add initial set of Daktronics drivers")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200224103325.hrxdnaeqsthplu42@kili.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
