diff options
author | Linus Walleij | 2016-06-16 11:55:55 +0200 |
---|---|---|
committer | Linus Walleij | 2016-06-17 18:12:19 +0200 |
commit | bfbbe44daf64d0ccf2de123179817f3557fb9237 (patch) | |
tree | 051573607cf58ae0f743f2dc6b96ee3f308de840 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
parent | gpio: make sure gpiod_to_irq() returns negative on NULL desc (diff) | |
download | kernel-qcow2-linux-bfbbe44daf64d0ccf2de123179817f3557fb9237.tar.gz kernel-qcow2-linux-bfbbe44daf64d0ccf2de123179817f3557fb9237.tar.xz kernel-qcow2-linux-bfbbe44daf64d0ccf2de123179817f3557fb9237.zip |
gpio: make library immune to error pointers
Most functions that take a GPIO descriptor in need to check the
descriptor for IS_ERR(). We do this mostly in the VALIDATE_DESC()
macro except for the gpiod_to_irq() function which needs special
handling.
Cc: stable@vger.kernel.org
Reported-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions