pmcraid: don't wank with fasync in ->release()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -3598,19 +3598,6 @@ static int pmcraid_chr_open(struct inode *inode, struct file *filep)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* pmcraid_release - char node "release" entry point
|
|
||||||
*/
|
|
||||||
static int pmcraid_chr_release(struct inode *inode, struct file *filep)
|
|
||||||
{
|
|
||||||
struct pmcraid_instance *pinstance = filep->private_data;
|
|
||||||
|
|
||||||
filep->private_data = NULL;
|
|
||||||
fasync_helper(-1, filep, 0, &pinstance->aen_queue);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pmcraid_fasync - Async notifier registration from applications
|
* pmcraid_fasync - Async notifier registration from applications
|
||||||
*
|
*
|
||||||
@@ -4167,7 +4154,6 @@ static long pmcraid_chr_ioctl(
|
|||||||
static const struct file_operations pmcraid_fops = {
|
static const struct file_operations pmcraid_fops = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.open = pmcraid_chr_open,
|
.open = pmcraid_chr_open,
|
||||||
.release = pmcraid_chr_release,
|
|
||||||
.fasync = pmcraid_chr_fasync,
|
.fasync = pmcraid_chr_fasync,
|
||||||
.unlocked_ioctl = pmcraid_chr_ioctl,
|
.unlocked_ioctl = pmcraid_chr_ioctl,
|
||||||
#ifdef CONFIG_COMPAT
|
#ifdef CONFIG_COMPAT
|
||||||
|
Reference in New Issue
Block a user