mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
uml-harddog: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
8702965848
commit
78dccb46dd
1 changed files with 3 additions and 0 deletions
|
@ -66,6 +66,7 @@ static int harddog_open(struct inode *inode, struct file *file)
|
|||
int err = -EBUSY;
|
||||
char *sock = NULL;
|
||||
|
||||
lock_kernel();
|
||||
spin_lock(&lock);
|
||||
if(timer_alive)
|
||||
goto err;
|
||||
|
@ -82,9 +83,11 @@ static int harddog_open(struct inode *inode, struct file *file)
|
|||
|
||||
timer_alive = 1;
|
||||
spin_unlock(&lock);
|
||||
unlock_kernel();
|
||||
return nonseekable_open(inode, file);
|
||||
err:
|
||||
spin_unlock(&lock);
|
||||
unlock_kernel();
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue