diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-06-22 18:12:24 +0300 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2015-07-16 10:20:03 +0200 |
| commit | 8749f8ed5cc07f4f130f2e5b2c41da78388146ec (patch) | |
| tree | 4e3b5ab995587f70f03d34bb96843833996ee36a /tools/perf/scripts/python/netdev-times.py | |
| parent | 95b612cc6c7f95f4e08f1b3dbc6588fda49b1b12 (diff) | |
pinctrl: samsung: don't truncate the last char
We were allocating enough space because sizeof("-grp") and
sizeof("-mux") are both equal to 5 but in the snprintf() we only allowed
for 4 characters so the last 'p' and 'x' characters were truncated.
The allocate and sprintf can be done in one step with the kasprintf().
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
