[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1310162490.9760.5.camel@laptop>
Date: Fri, 08 Jul 2011 19:01:27 -0300
From: Jose Alonso <joalonsof@...il.com>
To: Matthew Garrett <mjg59@...f.ucam.org>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] dell-laptop - using buffer without mutex_lock
Using buffer->output[1] without mutex_lock()
--- linux-3.0-rc6/drivers/platform/x86/dell-laptop.c.ORIG
2011-07-04 19:56:24.000000000 -0300
+++ linux-3.0-rc6/drivers/platform/x86/dell-laptop.c 2011-07-08
18:27:02.420791868 -0300
@@ -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 = {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists