linux/drivers/base/regmap
Mark Brown ba1de75429 regmap: debugfs: Avoid overflows for very small reads
commit db04328c16 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-17 08:50:54 -08:00
..
internal.h Merge remote-tracking branches 'regmap/topic/patch' and 'regmap/topic/sync' into regmap-next 2012-03-14 13:14:24 +00:00
Kconfig regmap: Add a reusable irq_chip for regmap based interrupt controllers 2011-11-08 11:29:48 +00:00
Makefile regmap: Remove indexed cache type 2011-11-20 20:56:34 +00:00
regcache-lzo.c The following text was taken from the original review request: 2012-03-24 10:41:37 -07:00
regcache-rbtree.c regmap: A couple of small fixes for 3.4 2012-04-07 09:56:00 -07:00
regcache.c regmap: Export regcache_sync_region() 2012-04-03 13:08:53 +01:00
regmap-debugfs.c regmap: debugfs: Avoid overflows for very small reads 2013-01-17 08:50:54 -08:00
regmap-i2c.c regmap: Implement managed regmap_init() 2012-01-30 21:06:43 +00:00
regmap-irq.c device.h: cleanup users outside of linux/include (C files) 2012-03-11 14:27:37 -04:00
regmap-spi.c regmap: Implement managed regmap_init() 2012-01-30 21:06:43 +00:00
regmap.c regmap: fix possible memory corruption in regmap_bulk_read() 2012-05-09 15:44:11 +01:00