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

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

agp-frontend: BKL pushdown



Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 8f593427
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@
#include <linux/mm.h>
#include <linux/fs.h>
#include <linux/sched.h>
#include <linux/smp_lock.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
#include "agp.h"
@@ -677,6 +678,7 @@ static int agp_open(struct inode *inode, struct file *file)
	struct agp_client *client;
	int rc = -ENXIO;

	lock_kernel();
	mutex_lock(&(agp_fe.agp_mutex));

	if (minor != AGPGART_MINOR)
@@ -703,12 +705,14 @@ static int agp_open(struct inode *inode, struct file *file)
	agp_insert_file_private(priv);
	DBG("private=%p, client=%p", priv, client);
	mutex_unlock(&(agp_fe.agp_mutex));
	unlock_kernel();
	return 0;

err_out_nomem:
	rc = -ENOMEM;
err_out:
	mutex_unlock(&(agp_fe.agp_mutex));
	unlock_kernel();
	return rc;
}