Thread (3 messages) 3 messages, 2 authors, 2011-06-29

[stable] [PATCH v2] MAX1111: Fix Race condition causing NULL pointer exception

From: Greg KH <hidden>
Date: 2011-06-03 22:32:03

On Fri, Jun 03, 2011 at 10:00:03PM +0200, Pavel Herrmann wrote:
spi_sync call uses its spi_message parameter to keep completion information,
having this structure static is not thread-safe, potentially causing one
thread having pointers to memory on or above other threads stack. use mutex
to prevent multiple access

Signed-off-by: Pavel Herrmann <redacted>
Acked-by: Russell King <redacted>
Acked-by: Pavel Machek <redacted>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Cyril Hrubis <redacted>

---
 drivers/hwmon/max1111.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read Documentation/stable_kernel_rules.txt
for how to do this properly.

</formletter>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help