]> err.no Git - linux-2.6/commit
i2c-davinci: Initialize cmd_complete sooner
authorTroy Kisky <troy.kisky@boundarydevices.com>
Mon, 14 Jul 2008 20:38:21 +0000 (22:38 +0200)
committerJean Delvare <khali@mahadeva.delvare>
Mon, 14 Jul 2008 20:38:21 +0000 (22:38 +0200)
commit2e7437879897a4185bd84478a0451e5367dee7ed
tree345d40055737b3067e598fe483a17c65ca8bb831
parent5a0d5f5ffa5d294d895ef54fc220c6182db63998
i2c-davinci: Initialize cmd_complete sooner

If an interrupt happens before an I2c master read/write,
complete is called on uninitialized structure.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-davinci.c