From: Lars-Peter Clausen Date: Wed, 12 May 2010 00:10:54 +0000 (+0200) Subject: mfd: pcf50633-adc: Fix potential race in pcf50633_adc_sync_read X-Git-Tag: v2.6.35-rc1~7^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6438a694b670cd188c2fd2f75e0cd6b0ae21bea9;p=pandora-kernel.git mfd: pcf50633-adc: Fix potential race in pcf50633_adc_sync_read Currently it's not guaranteed that request struct is not already freed when reading from it. Fix this by moving synced request related fields from the pcf50633_adc_request struct to its own struct and store it on the functions stack. Signed-off-by: Lars-Peter Clausen Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed