summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-04-30 11:40:17 +0000
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-30 11:40:17 +0000
commitaa5b9cbf62555cedda5cab5d45c354404554bbc4 (patch)
tree0d2e22dcf0768e242f5b62f101e366fabb74a31c
parent5f58ac7fed247c81ccd857c022068ca3819ff406 (diff)
downloadmediapointer-dvb-s2-aa5b9cbf62555cedda5cab5d45c354404554bbc4.tar.gz
mediapointer-dvb-s2-aa5b9cbf62555cedda5cab5d45c354404554bbc4.tar.bz2
tuner_symbol_probe(): don't do symbol_put() if symbol_request() failed
From: Andrew Morton <akpm@linux-foundation.org> Because it goes BUG. Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--linux/drivers/media/video/tuner-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index 0c3bf1248..3902d6a1f 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -48,11 +48,11 @@
typeof(&FUNCTION) __a = symbol_request(FUNCTION); \
if (__a) { \
__r = (int) __a(ARGS); \
+ symbol_put(FUNCTION); \
} else { \
printk(KERN_ERR "TUNER: Unable to find " \
"symbol "#FUNCTION"()\n"); \
} \
- symbol_put(FUNCTION); \
__r; \
})