i2c: ismt: initialize DMA buffer
authorJames Ralston <james.d.ralston@intel.com>
Tue, 24 Sep 2013 23:47:55 +0000 (16:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Nov 2013 12:35:19 +0000 (04:35 -0800)
commitc0329006f4b3c7ab4dde75aa003de50982a44b91
tree6fb859f1cea055746af7c86b96b70aba379555d1
parentb04b881391b7779fe7af1110361d4a6487391000
i2c: ismt: initialize DMA buffer

commit bf4169100c909667ede6af67668b3ecce6928343 upstream.

This patch adds code to initialize the DMA buffer to compensate for
possible hardware data corruption.

Signed-off-by: James Ralston <james.d.ralston@intel.com>
[wsa: changed to use 'sizeof']
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-ismt.c