diff options
| author | Tzung-Bi Shih <tzungbi@kernel.org> | 2026-01-16 08:10:18 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-01-30 10:28:47 +0100 |
| commit | c775ea4308949b5a8f47752a7a724df6b699c2fc (patch) | |
| tree | 829c6f7d879e0379e2f0c1a10acee03f57c906e7 /include/net/aligned_data.h | |
| parent | f72b579931d178a057b65f18dc77f7429f519273 (diff) | |
gpio: cdev: Correct return code on memory allocation failure
commit faff6846474e99295a139997f93ef6db222b5cee upstream.
-ENOMEM is a more appropriate return code for memory allocation
failures. Correct it.
Cc: stable@vger.kernel.org
Fixes: 20bddcb40b2b ("gpiolib: cdev: replace locking wrappers for gpio_device with guards")
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20260116081036.352286-6-tzungbi@kernel.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions
