mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 10:16:39 +07:00
V4L/DVB (7800): tuner_symbol_probe(): don't do symbol_put() if symbol_request() failed
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>
This commit is contained in:
parent
9604006d28
commit
a1355e5301
@ -40,11 +40,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; \
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user