Repository navigation
Commit 0926ee9
tools/power turbostat: fix buffer overrun
[ Upstream commit eeb71c9 ]
turbostat could be terminated by general protection fault on some latest
hardwares which (for example) support 9 levels of C-states and show 18
"tADDED" lines. That bloats the total output and finally causes buffer
overrun. So let's extend the buffer to avoid this.
Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 94132ac commit 0926ee9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5125 | 5125 | | |
5126 | 5126 | | |
5127 | 5127 | | |
5128 | | - | |
| 5128 | + | |
5129 | 5129 | | |
5130 | 5130 | | |
5131 | 5131 | | |
| |||
0 commit comments