aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_gem.c
diff options
context:
space:
mode:
authorLinus Walleij <[email protected]>2016-05-30 14:48:39 +0000
committerLinus Walleij <[email protected]>2016-05-30 14:56:41 +0000
commit54d77198fdfbc4f0fe11b4252c1d9c97d51a3264 (patch)
tree0a8327b8bdf5c49781c8efad73009e4f0bb77719 /drivers/gpu/drm/omapdrm/omap_gem.c
parentgpio: handle compatible ioctl() pointers (diff)
downloadkernel-54d77198fdfbc4f0fe11b4252c1d9c97d51a3264.tar.gz
kernel-54d77198fdfbc4f0fe11b4252c1d9c97d51a3264.zip
gpio: bail out silently on NULL descriptors
In fdeb8e1547cb9dd39d5d7223b33f3565cf86c28e ("gpio: reflect base and ngpio into gpio_device") assumed that GPIO descriptors are either valid or error pointers, but gpiod_get_[index_]optional() actually return NULL descriptors and then all subsequent calls should just bail out. Cc: [email protected] Cc: Sergei Shtylyov <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Andrew Lunn <[email protected]> Fixes: fdeb8e1547cb ("gpio: reflect base and ngpio into gpio_device") Reported-by: Uwe Kleine-König <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_gem.c')
0 files changed, 0 insertions, 0 deletions