diff options
| author | 2024-07-04 10:19:32 -0500 | |
|---|---|---|
| committer | 2024-07-11 12:46:33 +0100 | |
| commit | 87e552ad654554be73e62dd43c923bcee215287d (patch) | |
| tree | cbb7b46e78274377959270f55888586aa942c539 /include/uapi/linux/byteorder/ssh:/git@git.zx2c4.com | |
| parent | leds: leds-lp55xx: Convert mutex lock/unlock to guard API (diff) | |
leds: flash: leds-qcom-flash: Test the correct variable in init
This code was passing the incorrect pointer to PTR_ERR_OR_ZERO() so it
always returned success. It should have been checking the array element
instead of the array itself.
Fixes: 96a2e242a5dc ("leds: flash: Add driver to support flash LED module in QCOM PMICs")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/ZoWJS_epjIMCYITg@stanley.mountain
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'include/uapi/linux/byteorder/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
