diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-04-11 21:07:51 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-20 10:34:20 +0300 |
| commit | 2f345bb14ad4744950499ff222e2899209297afa (patch) | |
| tree | 96db01f29c426569c1bd6ecc1977beb746aebbd8 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 6b4bf97587ef6c1927a78934b700204920655123 (diff) | |
| download | linux-2f345bb14ad4744950499ff222e2899209297afa.tar.xz | |
i2c: dev: check return value when calling dev_set_name()
commit 993eb48fa199b5f476df8204e652eff63dd19361 upstream.
If dev_set_name() fails, the dev_name() is null, check the return
value of dev_set_name() to avoid the null-ptr-deref.
Fixes: 1413ef638aba ("i2c: dev: Fix the race between the release of i2c_dev and cdev")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
