linux_dsm_epyc7002/drivers/base/regmap
Maxime Coquelin 921cc29473 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
2015-06-16 12:58:22 +01:00
..
internal.h regmap: introduce regmap_name to fix syscon regmap trace events 2015-03-19 20:04:55 +00:00
Kconfig regmap: ac97: Add generic AC'97 callbacks 2014-11-19 10:28:14 +00:00
Makefile regmap: Move tracing header into drivers/base/regmap 2015-03-19 22:22:45 +00:00
regcache-flat.c regmap: cache: Sort include headers alphabetically 2014-10-20 12:25:06 +01:00
regcache-lzo.c regmap: cache: Sort include headers alphabetically 2014-10-20 12:25:06 +01:00
regcache-rbtree.c regmap: regcache-rbtree: Fix present bitmap resize 2015-03-07 16:17:33 +00:00
regcache.c regmap: Patch for v4.1 2015-04-13 15:00:55 -07:00
regmap-ac97.c regmap: ac97: Clean up indentation 2015-02-02 12:13:39 +00:00
regmap-debugfs.c Merge remote-tracking branch 'regmap/fix/debugfs' into regmap-linus 2014-09-29 20:49:40 +01:00
regmap-i2c.c regmap: Fix i2c word access when using SMBus access functions 2015-02-04 20:48:13 +00:00
regmap-irq.c regmap-irq: set IRQF_ONESHOT flag to ensure IRQ request 2015-02-14 14:26:36 +09:00
regmap-mmio.c Merge remote-tracking branches 'regmap/topic/irq', 'regmap/topic/le', 'regmap/topic/mmio' and 'regmap/topic/rbtree' into regmap-next 2014-06-02 17:07:39 +01:00
regmap-spi.c regmap: add DT endianness binding support. 2014-08-16 16:56:23 -05:00
regmap-spmi.c regmap: spmi: support base and extended register spaces 2014-02-15 11:55:28 -08:00
regmap.c regmap: Fix possible shift overflow in regmap_field_init() 2015-06-16 12:58:22 +01:00
trace.h regmap: Move tracing header into drivers/base/regmap 2015-03-19 22:22:45 +00:00