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)
else
dell_send_request(buffer, 0, 1);
ret = buffer->output[1];
out:
release_buffer();
if (ret)
return ret;
return buffer->output[1];
}
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