summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Ball <cjb@laptop.org>2011-04-13 16:25:30 -0400
committerChris Ball <cjb@laptop.org>2011-05-24 21:01:42 -0400
commit30574ed143e10dd19295b7d80be55f2cd6764c6f (patch)
treeff99f1105ccb7e8d6c8c908e3773b9382acb11f4
parent87f6119e25bbe0fd60e76f599d5fa10cf489519c (diff)
mmc: core: Fix use of uninitialized data in mmc_send_if_cond.
mmc_send_if_cond did not zero out mmc_command on stack. Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r--drivers/mmc/core/sd_ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/core/sd_ops.c b/drivers/mmc/core/sd_ops.c
index 71fdb07fd8de..da508497a6e0 100644
--- a/drivers/mmc/core/sd_ops.c
+++ b/drivers/mmc/core/sd_ops.c
@@ -201,6 +201,8 @@ int mmc_send_if_cond(struct mmc_host *host, u32 ocr)
static const u8 test_pattern = 0xAA;
u8 result_pattern;
+ memset(&cmd, 0, sizeof(struct mmc_command));
+
/*
* To support SD 2.0 cards, we must always invoke SD_SEND_IF_COND
* before SD_APP_OP_COND. This command will harmlessly fail for
xl-next'>qxl-next Official DRM kernel treeairlied
summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorMichael Welling <mwelling@ieee.org>2015-05-07 18:36:53 -0500
committerMark Brown <broonie@kernel.org>2015-05-08 12:48:42 +0100
commitb28cb9414db9f8e42ac18c9e360e4e99cda42489 (patch)
tree6e311df6a477dfac15c93c68fcba3b39b1aa3b9c /crypto
parent7d769802427ef9a91eaf9b5a9a6283e71f2ba9d8 (diff)
spi: omap2-mcspi: Switch driver to use transfer_one
Switches from transfer_one_message to transfer_one to prepare driver for use of GPIO chip selects. Signed-off-by: Michael Welling <mwelling@ieee.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions