diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-03-17 20:21:55 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-05-05 17:57:02 +0300 |
| commit | e8f319eae96a3d718e810d52432020a2b77f5f60 (patch) | |
| tree | a92f547d5d12ee50d0a68fef9f2f98d8f30692b9 /include/linux/debugobjects.h | |
| parent | 5e78a431a3f74c632351791d7902c60199d1ce83 (diff) | |
| download | linux-e8f319eae96a3d718e810d52432020a2b77f5f60.tar.xz | |
media: ti: vpe: Fix the error code of devm_kzalloc() in vip_probe_slice()
In vip_probe_slice(), the error check for devm_kzalloc() incorrectly
uses PTR_ERR_OR_ZERO() which returns 0 for NULL pointer.
Return -ENOMEM for devm_kzalloc() failure.
Fixes: fc2873aa4a21 ("media: ti: vpe: Add the VIP driver")
Cc: stable@vger.kernel.org
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
