diff options
| author | Bartosz Golaszewski <[email protected]> | 2016-12-20 12:28:19 +0100 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2016-12-28 14:12:51 +0100 |
| commit | ad6d8004fa29a8958381b60215e32d1e903b0492 (patch) | |
| tree | 5e059a240bc3e8a0e50580194d2181bbbbdce467 /tools/perf/scripts/python | |
| parent | e53c60289dfaba57fd8bf108406b94a71bb9bac1 (diff) | |
gpio: mockup: dynamically allocate memory for chip name
Currently the chip name buffer is allocated on the stack and the
address of the buffer is passed to the gpio framework. It's invalid
after probe() returns, so the sysfs label attribute displays garbage.
Use devm_kasprintf() for each string instead.
Signed-off-by: Bartosz Golaszewski <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions