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

Commit 5ab0854d authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Jonathan Corbet
Browse files

sbus-rtc: BKL pushdown



Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 41012735
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
 */

#include <linux/module.h>
#include <linux/smp_lock.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/miscdevice.h>
@@ -213,6 +214,7 @@ static int rtc_open(struct inode *inode, struct file *file)
{
	int ret;

	lock_kernel();
	spin_lock_irq(&mostek_lock);
	if (rtc_busy) {
		ret = -EBUSY;
@@ -221,6 +223,7 @@ static int rtc_open(struct inode *inode, struct file *file)
		ret = 0;
	}
	spin_unlock_irq(&mostek_lock);
	unlock_kernel();

	return ret;
}