From: "Chris Peterson" <cpeterso@cpeterso.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] fix uninitialized variable warning in crypto/async_tx/async_tx.c
Date: Sun, 27 Apr 2008 00:12:22 -0700 [thread overview]
Message-ID: <a24804730804270012ycdbd962v377e0a3b9a379013@mail.gmail.com> (raw)
This patch against linux-2.6.25-git7.
/mnt/westside/vol/silver/cpeterso/tmp/linux/linux-2.6.25/crypto/async_tx/async_tx.c:
In function `async_trigger_callback':
/mnt/westside/vol/silver/cpeterso/tmp/linux/linux-2.6.25/crypto/async_tx/async_tx.c:584:
warning: `chan' might be used uninitialized in this function
chris
Signed-off-by: Chris Peterson <cpeterso@cpeterso.com>
---
diff -Naur linux-2.6.25-git7/crypto/async_tx/async_tx.c
linux-2.6.25-git7+patch/crypto/async_tx/async_tx.c
--- linux-2.6.25-git7/crypto/async_tx/async_tx.c 2008-04-25
22:46:24.000000000 -0700
+++ linux-2.6.25-git7+patch/crypto/async_tx/async_tx.c 2008-04-25
23:39:44.000000000 -0700
@@ -596,8 +596,11 @@
device = NULL;
tx = device ? device->device_prep_dma_interrupt(chan, 0) : NULL;
- } else
+ } else {
+ chan = NULL;
+ device = NULL;
tx = NULL;
+ }
if (tx) {
pr_debug("%s: (async)\n", __func__);
next reply other threads:[~2008-04-27 7:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-27 7:12 Chris Peterson [this message]
2008-04-27 7:17 ` David Miller
2008-04-28 5:04 ` [PATCH] fix uninitialized variable warning in crypto/async_tx/async_tx.c (fixed?) Chris Peterson
2008-04-28 6:33 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a24804730804270012ycdbd962v377e0a3b9a379013@mail.gmail.com \
--to=cpeterso@cpeterso.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®