linux/drivers/base/regmap
Mark Brown db04328c16 regmap: debugfs: Avoid overflows for very small reads
If count is less than the size of a register then we may hit integer
wraparound when trying to move backwards to check if we're still in
the buffer. Instead move the position forwards to check if it's still
in the buffer, we are unlikely to be able to allocate a buffer
sufficiently big to overflow here.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
2012-12-11 01:29:39 +09:00
..
internal.h regmap: Cache register and value sizes for debugfs 2012-12-06 15:10:21 +09:00
Kconfig regmap: Use select .. if to get IRQ_DOMAIN enabled 2012-05-23 10:15:51 +01:00
Makefile regmap: add MMIO bus support 2012-04-06 10:47:35 +01:00
regcache-lzo.c regmap: implement register striding 2012-04-10 11:01:18 +01:00
regcache-rbtree.c regmap: implement register striding 2012-04-10 11:01:18 +01:00
regcache.c regmap: implement register striding 2012-04-10 11:01:18 +01:00
regmap-debugfs.c regmap: debugfs: Avoid overflows for very small reads 2012-12-11 01:29:39 +09:00
regmap-i2c.c i2c: Split I2C_M_NOSTART support out of I2C_FUNC_PROTOCOL_MANGLING 2012-05-30 10:55:34 +02:00
regmap-irq.c regmap: no need primary handler for nested irq 2012-09-09 11:05:45 +08:00
regmap-mmio.c regmap: Fix incorrect arguments to kzalloc() call 2012-07-18 22:13:53 +01:00
regmap-spi.c regmap: introduce explicit bus_context for bus callbacks 2012-04-06 10:47:34 +01:00
regmap.c regmap: Fix printing of size_t variable 2012-10-25 18:55:11 +01:00