···2727 int i;2828 unsigned int *cache;29293030- if (!map || map->reg_stride_order < 0)3030+ if (!map || map->reg_stride_order < 0 || !map->max_register)3131 return -EINVAL;32323333 map->cache = kcalloc(regcache_flat_get_index(map, map->max_register)
+1-1
drivers/base/regmap/regcache.c
···529529 * regcache_cache_bypass: Put a register map into cache bypass mode530530 *531531 * @map: map to configure532532- * @cache_bypass: flag if changes should not be written to the hardware532532+ * @cache_bypass: flag if changes should not be written to the cache533533 *534534 * When a register map is marked with the cache bypass option, writes535535 * to the register map API will only update the hardware and not the