lkml.org 
[lkml]   [2011]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] [RESENDING] dell-laptop - using buffer without mutex_lock
From
Date
(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 = {



\
 
 \ /
  Last update: 2011-07-10 20:49    [W:0.025 / U:2.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site