summaryrefslogtreecommitdiff
path: root/include/linux/zstd_errors.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-04-11 21:07:51 +0300
committerWolfram Sang <wsa@kernel.org>2022-04-15 23:23:22 +0200
commit993eb48fa199b5f476df8204e652eff63dd19361 (patch)
treefc22bac6211f200a76fcc1f4944000e78495b41a /include/linux/zstd_errors.h
parentc60bd968c74749a85c71dfed5fabd3e36d487d54 (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