Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'regmap-fix-v6.9-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap

Pull regmap fixes from Mark Brown:
"Richard found a nasty corner case in the maple tree code which he
fixed, and also fixed a compiler warning which was showing up with the
toolchain he uses and helpfully identified a possible incorrect error
code which could have runtime impacts"

* tag 'regmap-fix-v6.9-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
regmap: maple: Fix uninitialized symbol 'ret' warnings
regmap: maple: Fix cache corruption in regcache_maple_drop()

+3 -3
+3 -3
drivers/base/regmap/regcache-maple.c
··· 112 112 unsigned long *entry, *lower, *upper; 113 113 unsigned long lower_index, lower_last; 114 114 unsigned long upper_index, upper_last; 115 - int ret; 115 + int ret = 0; 116 116 117 117 lower = NULL; 118 118 upper = NULL; ··· 145 145 upper_index = max + 1; 146 146 upper_last = mas.last; 147 147 148 - upper = kmemdup(&entry[max + 1], 148 + upper = kmemdup(&entry[max - mas.index + 1], 149 149 ((mas.last - max) * 150 150 sizeof(unsigned long)), 151 151 map->alloc_flags); ··· 244 244 unsigned long lmin = min; 245 245 unsigned long lmax = max; 246 246 unsigned int r, v, sync_start; 247 - int ret; 247 + int ret = 0; 248 248 bool sync_needed = false; 249 249 250 250 map->cache_bypass = true;