summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_frontend.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
index 7e1f4ce1c..20bb2f137 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -528,7 +528,7 @@ static void dvb_frontend_stop (struct dvb_frontend_data *fe)
static int dvb_frontend_start (struct dvb_frontend_data *fe)
{
- int ret, pt;
+ int ret;
dprintk ("%s\n", __FUNCTION__);
@@ -549,11 +549,12 @@ static int dvb_frontend_start (struct dvb_frontend_data *fe)
mb();
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
+{
/* bug in linux 2.4.x: kernel_thread() fails when the process calling
* open() is run in the debugger (fixed in kernel 2.5). I hope this
* workaround does not have any ugly side effects...
*/
- pt = current->ptrace;
+ int pt = current->ptrace;
current->ptrace = 0;
#endif
@@ -561,6 +562,7 @@ static int dvb_frontend_start (struct dvb_frontend_data *fe)
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
current->ptrace = pt;
+}
#endif
if (ret < 0) {