diff options
| author | Colin Ian King <[email protected]> | 2019-02-02 22:34:49 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-02-04 12:36:14 +0100 |
| commit | 5ae890780e1b4d08f2c0c5d4ea96fc3928fc0ee9 (patch) | |
| tree | 882fe49aad59783f877aa0dea2fca6a9a0bf7b69 /tools/perf/scripts/python | |
| parent | da17ad1e6fc5db769963a7079420dd9d9df2c8fe (diff) | |
staging: most: cdev: add missing check for cdev_add failure
Currently the call to cdev_add is missing a check for failure. Fix this by
checking for failure and exiting via a new error path that ensures the
allocated comp_channel struct is kfree'd.
Detected by CoverityScan, CID#1462359 ("Unchecked return value")
Fixes: 9bc79bbcd0c5 ("Staging: most: add MOST driver's aim-cdev module")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions