diff options
author | Andy Shevchenko <[email protected]> | 2022-04-11 21:07:51 +0300 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2022-04-15 23:23:22 +0200 |
commit | 993eb48fa199b5f476df8204e652eff63dd19361 (patch) | |
tree | fc22bac6211f200a76fcc1f4944000e78495b41a /lib/memory-notifier-error-inject.c | |
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 <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions