]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (9618): tvaudio: add additional logic to avoid OOPS
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Nov 2008 17:01:15 +0000 (14:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 14 Nov 2008 16:24:44 +0000 (14:24 -0200)
commit25bb96538a88e73ee82adac3774ea32943e0b156
tree3d361ef75ebd2a9298f46b5f229dd7552695fe9a
parent31a055d15ff3d0c74df675738ba2ee766156c06d
V4L/DVB (9618): tvaudio: add additional logic to avoid OOPS

This patch checks for volume, bass, treble, set mode and get mode
callbacks before actually enabling the code that would use them.

Instead of aborting the driver for load, this patch will allow it to
load with a reduced number of functionatities.

This prevents OOPS if some board entry is missing a needed callback.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/tvaudio.c