diff options
| author | Xiaoke Wang <[email protected]> | 2022-03-03 12:39:14 +0000 |
|---|---|---|
| committer | Wolfram Sang <[email protected]> | 2023-09-20 21:26:37 +0000 |
| commit | 7c0195fa9a9e263df204963f88a22b21688ffb66 (patch) | |
| tree | b2c46599bb8953d63d4f270c9a8d68737d680be8 /rust/helpers.c | |
| parent | i2c: designware: fix __i2c_dw_disable() in case master is holding SCL low (diff) | |
| download | kernel-7c0195fa9a9e263df204963f88a22b21688ffb66.tar.gz kernel-7c0195fa9a9e263df204963f88a22b21688ffb66.zip | |
i2c: mux: demux-pinctrl: check the return value of devm_kstrdup()
devm_kstrdup() returns pointer to allocated string on success,
NULL on failure. So it is better to check the return value of it.
Fixes: e35478eac030 ("i2c: mux: demux-pinctrl: run properly with multiple instances")
Signed-off-by: Xiaoke Wang <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
