Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pmcraid: don't wank with fasync in ->release()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro e84cb41e f0689f05

-14
-14
drivers/scsi/pmcraid.c
··· 3599 3599 } 3600 3600 3601 3601 /** 3602 - * pmcraid_release - char node "release" entry point 3603 - */ 3604 - static int pmcraid_chr_release(struct inode *inode, struct file *filep) 3605 - { 3606 - struct pmcraid_instance *pinstance = filep->private_data; 3607 - 3608 - filep->private_data = NULL; 3609 - fasync_helper(-1, filep, 0, &pinstance->aen_queue); 3610 - 3611 - return 0; 3612 - } 3613 - 3614 - /** 3615 3602 * pmcraid_fasync - Async notifier registration from applications 3616 3603 * 3617 3604 * This function adds the calling process to a driver global queue. When an ··· 4154 4167 static const struct file_operations pmcraid_fops = { 4155 4168 .owner = THIS_MODULE, 4156 4169 .open = pmcraid_chr_open, 4157 - .release = pmcraid_chr_release, 4158 4170 .fasync = pmcraid_chr_fasync, 4159 4171 .unlocked_ioctl = pmcraid_chr_ioctl, 4160 4172 #ifdef CONFIG_COMPAT