linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: ratbert.chuang@gmail.com (Po-Yu Chuang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] call cookies_initialize() before gator_start()
Date: Fri, 25 Mar 2011 11:31:19 +0800	[thread overview]
Message-ID: <1301023879-1770-1-git-send-email-ratbert.chuang@gmail.com> (raw)

From: Po-Yu Chuang <ratbert@faraday-tech.com>

gator_crc32_table might be accessed by gator_chksum_crc32() before
it is allocated.

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
---
Hi Pawel Moll,

Not sure where to post this patch. Please let me know if there were something
wrong.

 gator_main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gator_main.c b/gator_main.c
index 60b09cb..12aa1be 100644
--- a/gator_main.c
+++ b/gator_main.c
@@ -739,13 +739,13 @@ static int gator_op_start(void)
 
 	mutex_lock(&start_mutex);
 
+	cookies_initialize();
+
 	if (gator_started || gator_start())
 		err = -EINVAL;
 	else
 		gator_started = 1;
 
-	cookies_initialize();
-
 	mutex_unlock(&start_mutex);
 
 	return err;
-- 
1.6.3.3

             reply	other threads:[~2011-03-25  3:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-25  3:31 Po-Yu Chuang [this message]
2011-03-28 11:37 ` [PATCH] call cookies_initialize() before gator_start() Pawel Moll

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=1301023879-1770-1-git-send-email-ratbert.chuang@gmail.com \
    --to=ratbert.chuang@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).