From: Luca Tettamanti <kronos.it@gmail.com>
To: netdev@vger.kernel.org
To: netdev@vger.kernel.org
Cc: Luca Tettamanti <kronos.it@gmail.com>,
atl1-devel@lists.sourceforge.net, jcliburn@gmail.com,
chris.snook@gmail.com, jie.yang@atheros.com
Subject: [PATCH 2/2] atl1: zero out CMB and SBM in atl1_free_ring_resources
Date: Thu, 16 Sep 2010 21:29:47 +0200 [thread overview]
Message-ID: <1284665387-10289-3-git-send-email-kronos.it@gmail.com> (raw)
In-Reply-To: <AANLkTincBZrpHch0rv60YRXW2g=cqgO9vueAafcs=+RQ@mail.gmail.com>
In-Reply-To: <AANLkTincBZrpHch0rv60YRXW2g=cqgO9vueAafcs=+RQ@mail.gmail.com>
They are allocated in atl1_setup_ring_resources, zero out the pointers
in atl1_free_ring_resources (like the other resources).
---
drivers/net/atlx/atl1.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c
index bbd6e30..c73be28 100644
--- a/drivers/net/atlx/atl1.c
+++ b/drivers/net/atlx/atl1.c
@@ -1251,6 +1251,12 @@ static void atl1_free_ring_resources(struct atl1_adapter *adapter)
rrd_ring->desc = NULL;
rrd_ring->dma = 0;
+
+ adapter->cmb.dma = 0;
+ adapter->cmb.cmb = NULL;
+
+ adapter->smb.dma = 0;
+ adapter->smb.smb = NULL;
}
static void atl1_setup_mac_ctrl(struct atl1_adapter *adapter)
--
1.7.1
next prev parent reply other threads:[~2010-09-16 19:30 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-11 13:12 [BUG] atl1 causes lockup/reboot on resume from STR Luca Tettamanti
2010-09-11 20:47 ` Jarek Poplawski
2010-09-14 13:59 ` Luca Tettamanti
2010-09-14 14:22 ` Luca Tettamanti
2010-09-16 19:29 ` Luca Tettamanti
2010-09-16 19:29 ` [PATCH 1/2] atl1: fix resume Luca Tettamanti
2010-09-16 20:13 ` Chris Snook
2010-09-16 21:13 ` [stable] " Greg KH
2010-09-17 4:47 ` David Miller
2010-09-16 19:29 ` Luca Tettamanti [this message]
2010-09-16 20:15 ` [PATCH 2/2] atl1: zero out CMB and SBM in atl1_free_ring_resources Chris Snook
[not found] ` <1284717403-12913-1-git-send-email-kronos.it@gmail.com>
2010-09-22 19:34 ` [PATCH 1/2] atl1: fix resume Luca Tettamanti
2010-09-22 20:23 ` David Miller
2010-09-22 20:41 ` Luca Tettamanti
2010-09-22 20:53 ` David Miller
2010-09-22 20:42 ` [PATCH 2/2] atl1: zero out CMB and SBM in atl1_free_ring_resources Luca Tettamanti
2010-09-22 20:53 ` 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=1284665387-10289-3-git-send-email-kronos.it@gmail.com \
--to=kronos.it@gmail.com \
--cc=atl1-devel@lists.sourceforge.net \
--cc=chris.snook@gmail.com \
--cc=jcliburn@gmail.com \
--cc=jie.yang@atheros.com \
--cc=netdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.