From: ptqa <ptqa@netup.ru>
To: Mauro Carvalho Chehab <mchehab@redhat.com>,
Linux-Media <linux-media@vger.kernel.org>
Cc: "Алексей Буткеев" <abutkeev@netup.ru>, "Abylai Ospan" <aospan@netup.ru>
Subject: [PATCH] cx23885: fix pointer to structure for CAM
Date: Thu, 16 Aug 2012 18:55:40 +0400 [thread overview]
Message-ID: <502D09EC.9080504@netup.ru> (raw)
Hello, Mauro. Please, check our patch. Fixes problem with CAM, when
after re-iinitialization CAM used old pointer to structure.
Signed-off-by: Anton Nurkin <ptqa@netup.ru>
---
drivers/media/pci/cx23885/altera-ci.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/drivers/media/pci/cx23885/altera-ci.c
b/drivers/media/pci/cx23885/altera-ci.c
index 1fa8927..1e73764 100644
--- a/drivers/media/pci/cx23885/altera-ci.c
+++ b/drivers/media/pci/cx23885/altera-ci.c
@@ -724,6 +724,7 @@ int altera_ci_init(struct altera_ci_config *config,
int ci_nr)
if (temp_int != NULL) {
inter = temp_int->internal;
(inter->cis_used)++;
+ inter->fpga_rw = config->fpga_rw;
ci_dbg_print("%s: Find Internal Structure!\n", __func__);
} else {
inter = kzalloc(sizeof(struct fpga_internal), GFP_KERNEL);
@@ -743,7 +744,6 @@ int altera_ci_init(struct altera_ci_config *config,
int ci_nr)
ci_dbg_print("%s: setting state = %p for ci = %d\n", __func__,
state, ci_nr - 1);
- inter->state[ci_nr - 1] = state;
state->internal = inter;
state->nr = ci_nr - 1;
@@ -765,6 +765,8 @@ int altera_ci_init(struct altera_ci_config *config,
int ci_nr)
if (0 != ret)
goto err;
+ inter->state[ci_nr - 1] = state;
+
altera_hw_filt_init(config, ci_nr);
if (inter->strt_wrk) {
reply other threads:[~2012-08-16 14:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=502D09EC.9080504@netup.ru \
--to=ptqa@netup.ru \
--cc=abutkeev@netup.ru \
--cc=aospan@netup.ru \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
/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).