drm/nouveau: Check backlight IDs are >= 0, not > 0
authorLyude Paul <lyude@redhat.com>
Thu, 6 Sep 2018 21:43:21 +0000 (17:43 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 10 Oct 2018 23:54:09 +0000 (09:54 +1000)
commitdc854914999d5d52ac1b31740cb0ea8d89d0372e
treefe22cec32d10e301b32f0049d2920c320a8bf107
parent62e681f7dcab746412dce22d4b75b32c5ea38cdb
drm/nouveau: Check backlight IDs are >= 0, not > 0

Remember, ida IDs start at 0, not 1!

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_backlight.c