summaryrefslogtreecommitdiff
path: root/samples/vfio-mdev
diff options
context:
space:
mode:
authorCharlie Jenkins <charlie@rivosinc.com>2024-09-04 02:36:19 +0300
committerThomas Gleixner <tglx@linutronix.de>2024-10-02 16:15:33 +0300
commit6eabf656048d904d961584de2e1d45bc0854f9fb (patch)
treeb6a3291030e5cb892669a44ed974ef03ccf2e606 /samples/vfio-mdev
parent4a1361e9a5c5dbb5c9f647762ae0cb1a605101fa (diff)
downloadlinux-6eabf656048d904d961584de2e1d45bc0854f9fb.tar.xz
irqchip/sifive-plic: Return error code on failure
Set error to -ENOMEM if kcalloc() fails or if irq_domain_add_linear() fails inside of plic_probe() instead of returning 0. Fixes: 4d936f10ff80 ("irqchip/sifive-plic: Probe plic driver early for Allwinner D1 platform") Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Charlie Jenkins <charlie@rivosinc.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Anup Patel <anup@brainfault.org> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/all/20240903-correct_error_codes_sifive_plic-v1-1-d929b79663a2@rivosinc.com Closes: https://lore.kernel.org/r/202409031122.yBh8HrxA-lkp@intel.com/
Diffstat (limited to 'samples/vfio-mdev')
0 files changed, 0 insertions, 0 deletions