aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/ivtv/ivtv-alsa-pcm.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-02-09 05:40:10 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-02-11 18:18:14 -0200
commitcfb046cb800ba306b211fbbe4ac633486e11055f (patch)
tree8b2399a4aa900c7e50744d59f264e2546569f6f0 /drivers/media/pci/ivtv/ivtv-alsa-pcm.h
parent[media] em28xx: fix analog streaming with USB bulk transfers (diff)
downloadlinux-dev-cfb046cb800ba306b211fbbe4ac633486e11055f.tar.xz
linux-dev-cfb046cb800ba306b211fbbe4ac633486e11055f.zip
[media] cx18/ivtv: fix regression: remove __init from a non-init function
Commits 5e6e81b2890db3969527772a8350825a85c22d5c (cx18) and 2aebbf6737212265b917ed27c875c59d3037110a (ivtv) added an __init annotation to the cx18-alsa-load and ivtv-alsa-load functions. However, these functions are called *after* initialization by the main cx18/ivtv driver. By that time the memory containing those functions is already freed and your machine goes BOOM. Cc: stable@vger.kernel.org # for 3.8 Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/ivtv/ivtv-alsa-pcm.h')
-rw-r--r--drivers/media/pci/ivtv/ivtv-alsa-pcm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/ivtv/ivtv-alsa-pcm.h b/drivers/media/pci/ivtv/ivtv-alsa-pcm.h
index 23dfe0d12400..186814e0b2d4 100644
--- a/drivers/media/pci/ivtv/ivtv-alsa-pcm.h
+++ b/drivers/media/pci/ivtv/ivtv-alsa-pcm.h
@@ -20,4 +20,4 @@
* 02111-1307 USA
*/
-int __init snd_ivtv_pcm_create(struct snd_ivtv_card *itvsc);
+int snd_ivtv_pcm_create(struct snd_ivtv_card *itvsc);