dell-laptop - using buffer without mutex_lock
Using buffer->output[1] without mutex_lock() Signed-off-by: Jose Alonso <joalonsof@gmail.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
This commit is contained in:
parent
be65dde82a
commit
b486742a12
1 changed files with 3 additions and 3 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue