aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2007-10-18 13:58:11 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-22 10:01:53 -0400
commitf40aa808bad19a079a0e122e326d6970df141afb (patch)
treeafd968ea721ea590b60c559d6ba971aa3d2d3da3
parent6b1ec9da152c03106aa92fa045f5cf9b7912597c (diff)
V4L/DVB (6382): saa7134: fix NULL dereference at suspend time for cards without IR receiver
Calling saa7134_ir_stop at suspend is no good idea for saa7134 cards without remote control. Signed-off-by: Matthias Schwarzott <zzam@gentoo.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/video/saa7134/saa7134-core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/saa7134/saa7134-core.c b/drivers/media/video/saa7134/saa7134-core.c
index 410242a91f43..a499eea379e6 100644
--- a/drivers/media/video/saa7134/saa7134-core.c
+++ b/drivers/media/video/saa7134/saa7134-core.c
@@ -1189,7 +1189,9 @@ static int saa7134_suspend(struct pci_dev *pci_dev , pm_message_t state)
1189 del_timer(&dev->video_q.timeout); 1189 del_timer(&dev->video_q.timeout);
1190 del_timer(&dev->vbi_q.timeout); 1190 del_timer(&dev->vbi_q.timeout);
1191 del_timer(&dev->ts_q.timeout); 1191 del_timer(&dev->ts_q.timeout);
1192 saa7134_ir_stop(dev); 1192
1193 if (dev->remote)
1194 saa7134_ir_stop(dev);
1193 1195
1194 pci_set_power_state(pci_dev, pci_choose_state(pci_dev, state)); 1196 pci_set_power_state(pci_dev, pci_choose_state(pci_dev, state));
1195 pci_save_state(pci_dev); 1197 pci_save_state(pci_dev);