diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-05-01 09:31:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-05-14 01:54:09 -0400 |
commit | 3f98387efa9333c5765d36e144c47c107d6ba64a (patch) | |
tree | b5c8f515aecf306b0e0b6087458d221d9411f6cb /drivers/media/video/cx18/cx18-driver.c | |
parent | 6a4a79355bfa9ae6977556595a68f2e3a0e143f7 (diff) |
V4L/DVB (7854): cx18/ivtv: improve and fix out-of-memory handling
- don't show kernel backtrace when the allocation of the buffers fails: the
normal ivtv/cx18 messages are clear enough and the backtrace scares users.
- fix cleanup after the buffer allocation fails (caused kernel panic).
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx18/cx18-driver.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.c b/drivers/media/video/cx18/cx18-driver.c index 7813380dce3f..9453223a3dea 100644 --- a/drivers/media/video/cx18/cx18-driver.c +++ b/drivers/media/video/cx18/cx18-driver.c | |||
@@ -805,7 +805,7 @@ static int __devinit cx18_probe(struct pci_dev *dev, | |||
805 | return 0; | 805 | return 0; |
806 | 806 | ||
807 | free_streams: | 807 | free_streams: |
808 | cx18_streams_cleanup(cx); | 808 | cx18_streams_cleanup(cx, 1); |
809 | free_irq: | 809 | free_irq: |
810 | free_irq(cx->dev->irq, (void *)cx); | 810 | free_irq(cx->dev->irq, (void *)cx); |
811 | free_i2c: | 811 | free_i2c: |
@@ -908,7 +908,7 @@ static void cx18_remove(struct pci_dev *pci_dev) | |||
908 | 908 | ||
909 | cx18_halt_firmware(cx); | 909 | cx18_halt_firmware(cx); |
910 | 910 | ||
911 | cx18_streams_cleanup(cx); | 911 | cx18_streams_cleanup(cx, 1); |
912 | 912 | ||
913 | exit_cx18_i2c(cx); | 913 | exit_cx18_i2c(cx); |
914 | 914 | ||