diff options
| author | Xiaoke Wang <[email protected]> | 2022-02-22 10:00:24 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-02-25 10:01:16 +0100 |
| commit | a17b34502aebaac8533b3e1fd73fd6e1360d31db (patch) | |
| tree | 917d587afa6693d271710fed3c9154c4af26de7c /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 7c6444d8e0f1be30e7fd910e40c0d495c36e6935 (diff) | |
staging: wfx: check the return value of devm_kmalloc()
devm_kmalloc() returns a pointer to allocated memory on success, NULL
on failure. While there is a memory allocation of devm_kmalloc()
without proper check. It is better to check the return value of it to
prevent wrong memory access.
And I use the err label which is introduced by the previous patch to
handle the error.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Dan Carpenter <[email protected]>
Reviewed-by: Jérôme Pouiller <[email protected]>
Signed-off-by: Xiaoke Wang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions