* [PATCH] [RESENDING] dell-laptop - using buffer without mutex_lock
@ 2011-07-10 18:46 Jose Alonso
0 siblings, 0 replies; only message in thread
From: Jose Alonso @ 2011-07-10 18:46 UTC (permalink / raw)
To: Matthew Garrett; +Cc: Greg Dietsche, linux-kernel
(resending patch with tabs and signed-off-by)
Using buffer->output[1] without mutex_lock()
Signed-off-by: Jose Alonso <joalonsof@gmail.com>
version linux-3.0-rc6
--
--- a/drivers/platform/x86/dell-laptop.c
+++ b/drivers/platform/x86/dell-laptop.c
@@ -560,11 +560,11 @@
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 = {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-10 18:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-10 18:46 [PATCH] [RESENDING] dell-laptop - using buffer without mutex_lock Jose Alonso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox