misc/genwqe: ensure zero initialization
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Mon, 12 Sep 2016 18:09:40 +0000 (20:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 10:43:35 +0000 (12:43 +0200)
commit13decfb4383b13b0f75e88709f4fad9138bd243b
tree09662f62e3447d6e88dfdb732823fab180591d39
parentdb08948b97180a3c9f49ce91caf1fb643a8110be
misc/genwqe: ensure zero initialization

Genwqe uses dma_alloc_coherent and depends on zero initialized memory. On
one occasion it ueses an explicit memset on others it uses un-initialized
memory.

This bug was covered because some archs actually return zero initialized
memory when using dma_alloc_coherent but this is by no means guaranteed.
Simply switch to dma_zalloc_coherent.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Frank Haverkamp <haver@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/genwqe/card_ddcb.c
drivers/misc/genwqe/card_utils.c