aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sbus
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2005-11-09 12:05:37 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2005-11-09 12:05:37 -0800
commitfeee207e44d3643d19e648af3c88946bd1c5106b (patch)
treecbb0da66cc2cd39e44fe8053fea95e71de78591e /drivers/sbus
parent84c1a13a30f21406f39e546684a78ebe9859e6d7 (diff)
downloadkernel_samsung_tuna-feee207e44d3643d19e648af3c88946bd1c5106b.zip
kernel_samsung_tuna-feee207e44d3643d19e648af3c88946bd1c5106b.tar.gz
kernel_samsung_tuna-feee207e44d3643d19e648af3c88946bd1c5106b.tar.bz2
[SPARC]: Fix locking thinkos in display7seg and cpwatchdog drivers.
Noticed by Eric Brower. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/sbus')
-rw-r--r--drivers/sbus/char/cpwatchdog.c2
-rw-r--r--drivers/sbus/char/display7seg.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sbus/char/cpwatchdog.c b/drivers/sbus/char/cpwatchdog.c
index 071ae24..fd2cc77 100644
--- a/drivers/sbus/char/cpwatchdog.c
+++ b/drivers/sbus/char/cpwatchdog.c
@@ -407,7 +407,7 @@ static long wd_compat_ioctl(struct file *file, unsigned int cmd,
case WIOCGSTAT:
lock_kernel();
rval = wd_ioctl(file->f_dentry->d_inode, file, cmd, arg);
- lock_kernel();
+ unlock_kernel();
break;
/* everything else is handled by the generic compat layer */
default:
diff --git a/drivers/sbus/char/display7seg.c b/drivers/sbus/char/display7seg.c
index 39f5421..2c86a4b 100644
--- a/drivers/sbus/char/display7seg.c
+++ b/drivers/sbus/char/display7seg.c
@@ -161,7 +161,7 @@ static long d7s_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
writeb(regs, d7s_regs);
break;
};
- lock_kernel();
+ unlock_kernel();
return error;
}