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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:24:16 +0000 (09:24 +0100)
commit438f22af0688cb512f800d61f98cb8bd9b54e323
tree47339be702ef2efb96e489e85378b7d516b42409
parenta02eadf0639bb5e007e7e270385b97e9c0a4a944
drm/nouveau: Check backlight IDs are >= 0, not > 0

commit dc854914999d5d52ac1b31740cb0ea8d89d0372e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nouveau_backlight.c