Skip to content

Commit

Permalink
[SPARC]: Fix locking thinkos in display7seg and cpwatchdog drivers.
Browse files Browse the repository at this point in the history
Noticed by Eric Brower.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Nov 9, 2005
1 parent 84c1a13 commit feee207
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/sbus/char/cpwatchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion drivers/sbus/char/display7seg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit feee207

Please sign in to comment.