]> git.karo-electronics.de Git - karo-tx-linux.git/commit
media: cx18/ivtv: fix regression: remove __init from a non-init function
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 9 Feb 2013 08:40:10 +0000 (05:40 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Mar 2013 22:03:36 +0000 (06:03 +0800)
commit6afda116f93e0af68ef466304aca0483f5ff87d5
treedeb21e454af522841b8773fb915b2b540f5ca17e
parent3aa7a4669eabfaa67a2915cd116413e2e4e162e4
media: cx18/ivtv: fix regression: remove __init from a non-init function

commit cfb046cb800ba306b211fbbe4ac633486e11055f upstream.

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.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/pci/cx18/cx18-alsa-main.c
drivers/media/pci/cx18/cx18-alsa-pcm.h
drivers/media/pci/ivtv/ivtv-alsa-main.c
drivers/media/pci/ivtv/ivtv-alsa-pcm.h