OpenCloudOS-Kernel/drivers/hwtracing/stm
Chunyan Zhang f57af6df6a 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>
2016-04-08 16:08:00 +03:00
..
Kconfig stm class: Add heartbeat stm source device 2016-02-20 14:09:14 -08:00
Makefile stm class: Add heartbeat stm source device 2016-02-20 14:09:14 -08:00
console.c stm class: stm_console: Add kernel-console-over-stm driver 2015-10-04 20:28:58 +01:00
core.c stm class: Plug stm device's unlink callback 2016-02-20 14:09:14 -08:00
dummy_stm.c stm class: dummy_stm: Add link callback for fault injection 2016-02-20 14:09:14 -08:00
heartbeat.c stm class: Add heartbeat stm source device 2016-02-20 14:09:14 -08:00
policy.c stm class: Fix integer boundary checks for master range 2016-04-08 16:08:00 +03:00
stm.h stm class: Guard output assignment against concurrency 2016-02-20 14:09:14 -08:00