]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (7800): tuner_symbol_probe(): don't do symbol_put() if symbol_request() failed
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Apr 2008 14:40:17 +0000 (11:40 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 14 May 2008 05:53:56 +0000 (02:53 -0300)
Because it goes BUG.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tuner-core.c

index 6bf104ea051da24c06c8b7d7bfe470555bd2f964..c8cd718675abf30c67ca7972e2b6155d750a95f7 100644 (file)
        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; \
 })