diff options
| author | Charles Han <[email protected]> | 2025-03-07 06:47:07 +0000 |
|---|---|---|
| committer | Stephen Boyd <[email protected]> | 2025-03-07 19:05:01 +0000 |
| commit | 00153c64a72d336cc61f4141e5be53b49b7797e1 (patch) | |
| tree | 1d2f66a92515c344889ee93a2d2d772ab85094ef /lib/netdev-notifier-error-inject.c | |
| parent | clk: Print an error when clk registration fails (diff) | |
| download | kernel-00153c64a72d336cc61f4141e5be53b49b7797e1.tar.gz kernel-00153c64a72d336cc61f4141e5be53b49b7797e1.zip | |
clk: mmp: Fix NULL vs IS_ERR() check
The devm_kzalloc() function returns NULL on error, not error pointers.
Fix the check.
Fixes: 03437e857b0a ("clk: mmp: Add Marvell PXA1908 APMU driver")
Signed-off-by: Charles Han <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
