diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-04-11 21:07:51 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2022-04-15 23:23:22 +0200 |
commit | 993eb48fa199b5f476df8204e652eff63dd19361 (patch) | |
tree | fc22bac6211f200a76fcc1f4944000e78495b41a /include/linux/zstd_errors.h | |
parent | c60bd968c74749a85c71dfed5fabd3e36d487d54 (diff) |
i2c: dev: check return value when calling dev_set_name()
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>
Diffstat (limited to 'include/linux/zstd_errors.h')
0 files changed, 0 insertions, 0 deletions