Commit b486742a authored by Jose Alonso's avatar Jose Alonso Committed by Matthew Garrett

dell-laptop - using buffer without mutex_lock

Using buffer->output[1] without mutex_lock()
Signed-off-by: default avatarJose Alonso <joalonsof@gmail.com>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent be65dde8
...@@ -540,11 +540,11 @@ static int dell_get_intensity(struct backlight_device *bd) ...@@ -540,11 +540,11 @@ static int dell_get_intensity(struct backlight_device *bd)
else else
dell_send_request(buffer, 0, 1); dell_send_request(buffer, 0, 1);
ret = buffer->output[1];
out: out:
release_buffer(); release_buffer();
if (ret) return ret;
return ret;
return buffer->output[1];
} }
static const struct backlight_ops dell_ops = { static const struct backlight_ops dell_ops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment