diff options
| author | Chunyan Zhang <zhang.chunyan@linaro.org> | 2016-03-28 15:55:42 +0800 |
|---|---|---|
| committer | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2016-04-08 16:08:00 +0300 |
| commit | f57af6df6af23c086cfe023896822200eee48dd1 (patch) | |
| tree | ae00b00985d7547b8d1cdb30397d0ac14d793d5c /tools/perf/scripts/python/netdev-times.py | |
| parent | MAINTAINERS: Add a git tree for the stm class (diff) | |
| download | linux-f57af6df6af23c086cfe023896822200eee48dd1.tar.gz linux-f57af6df6af23c086cfe023896822200eee48dd1.zip | |
stm class: Fix integer boundary checks for master range
Master IDs are of unsigned int type, yet in the configfs policy code
we're validating user's input against INT_MAX. This is both pointless
and misleading as the real limits are imposed by the stm device's
[sw_start..sw_end] (which are also limited by the spec to be no larger
than 2^16-1).
Clean this up by getting rid of the redundant comparisons.
Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: Laurent Fert <laurent.fert@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
