提交 e8d6539c 编写于 作者: M Mark Brown

regmap: debugfs: Make sure we store the last entry in the offset cache

Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 5bd9f4bb
...@@ -116,6 +116,15 @@ static unsigned int regmap_debugfs_get_dump_start(struct regmap *map, ...@@ -116,6 +116,15 @@ static unsigned int regmap_debugfs_get_dump_start(struct regmap *map,
} }
} }
/* Close the last entry off if we didn't scan beyond it */
if (c) {
c->max = p - 1;
list_add_tail(&c->list,
&map->debugfs_off_cache);
} else {
return base;
}
/* /*
* This should never happen; we return above if we fail to * This should never happen; we return above if we fail to
* allocate and we should never be in this code if there are * allocate and we should never be in this code if there are
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册