提交 b486742a 编写于 作者: J Jose Alonso 提交者: Matthew Garrett

dell-laptop - using buffer without mutex_lock

Using buffer->output[1] without mutex_lock()
Signed-off-by: NJose Alonso <joalonsof@gmail.com>
Signed-off-by: NMatthew Garrett <mjg@redhat.com>
上级 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];
return ret;
}
static const struct backlight_ops dell_ops = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册