Skip to content

Commit

Permalink
dell-laptop - using buffer without mutex_lock
Browse files Browse the repository at this point in the history
Using buffer->output[1] without mutex_lock()

Signed-off-by: Jose Alonso <joalonsof@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
  • Loading branch information
j-alonso authored and Matthew Garrett committed Jul 11, 2011
1 parent be65dde commit b486742
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/platform/x86/dell-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit b486742

Please sign in to comment.