commit | 6438a694b670cd188c2fd2f75e0cd6b0ae21bea9 | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Wed May 12 02:10:54 2010 +0200 |
committer | Samuel Ortiz <sameo@linux.intel.com> | Fri May 28 01:37:49 2010 +0200 |
tree | dd53c02d505042d8ff6cedbd48f7f84a49d8878f | |
parent | 0aeee5d4f6aa9bd28373907727937b7935d0434c [diff] |
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 <lars@metafoo.de> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>