aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMaxime Coquelin <maxime.coquelin@st.com>2015-06-16 07:53:19 -0400
committerMark Brown <broonie@kernel.org>2015-06-16 07:58:22 -0400
commit921cc29473a0d7c109105c1876ddb432f4a4be7d (patch)
treeb5d577496add5052fa5facd1c969d9df93251236 /tools/perf/scripts/python/export-to-postgresql.py
parentb787f68c36d49bb1d9236f403813641efa74a031 (diff)
regmap: Fix possible shift overflow in regmap_field_init()
The way the mask is generated in regmap_field_init() is wrong. Indeed, a field initialized with msb = 31 and lsb = 0 provokes a shift overflow while calculating the mask field. On some 32 bits architectures, such as x86, the generated mask is 0, instead of the expected 0xffffffff. This patch uses GENMASK() to fix the problem, as this macro is already safe regarding shift overflow. Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions