diff options
author | 2021-02-08 00:19:22 -0600 | |
---|---|---|
committer | 2021-02-09 11:41:59 +0100 | |
commit | aab0b4fe1b757fb40466e506d296b81b03cc1594 (patch) | |
tree | 1c5dcfe9e711fa27494e680a32e9b460d03505f2 /mm/debug.c | |
parent | i2c: mux: mlxcpld: Add callback to notify mux creation completion (diff) | |
download | wireguard-linux-aab0b4fe1b757fb40466e506d296b81b03cc1594.tar.xz wireguard-linux-aab0b4fe1b757fb40466e506d296b81b03cc1594.zip |
i2c: mv64xxx: Fix check for missing clock after adding RPM
In commit e5c02cf54154 ("i2c: mv64xxx: Add runtime PM support"), error
pointers to optional clocks were replaced by NULL to simplify the resume
callback implementation. However, that commit missed that the IS_ERR
check in mv64xxx_of_config should be replaced with a NULL check. As a
result, the check always passes, even for an invalid device tree.
Fixes: e5c02cf54154 ("i2c: mv64xxx: Add runtime PM support")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'mm/debug.c')
0 files changed, 0 insertions, 0 deletions