uxa: Fix Backlight option support.

Signed-off-by: Сковорода Никита Андреевич <chalkerx@gmail.com>
This commit is contained in:
Сковорода Никита Андреевич 2012-09-03 13:44:21 +04:00 committed by Chris Wilson
parent a972affe0c
commit 3dc644b2a9
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ intel_output_backlight_init(xf86OutputPtr output)
int i;
str = xf86GetOptValString(intel->Options, OPTION_BACKLIGHT);
if (str == NULL) {
if (str != NULL) {
sprintf(path, "%s/%s", BACKLIGHT_CLASS, str);
if (!stat(path, &buf)) {
intel_output->backlight_iface = backlight_interfaces[i];