Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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 = {