Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit feee207e authored by David S. Miller's avatar David S. Miller
Browse files

[SPARC]: Fix locking thinkos in display7seg and cpwatchdog drivers.



Noticed by Eric Brower.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 84c1a13a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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:
+1 −1
Original line number Diff line number Diff line
@@ -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;
}