patch-2.1.49 linux/drivers/isdn/isdn_common.c

Next file: linux/drivers/isdn/isdn_ppp.c
Previous file: linux/drivers/isdn/hisax/l3dss1.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.48/linux/drivers/isdn/isdn_common.c linux/drivers/isdn/isdn_common.c
@@ -1012,7 +1012,7 @@
 isdn_poll(struct file *file, poll_table * wait)
 {
 	unsigned int mask = 0;
-	unsigned int minor = MINOR(file->f_inode->i_rdev);
+	unsigned int minor = MINOR(file->f_dentry->d_inode->i_rdev);
 	int drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL);
 
 	if (minor == ISDN_MINOR_STATUS) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov