patch-2.1.45 linux/net/netlink.c

Next file: linux/net/socket.c
Previous file: linux/net/ipv4/tcp_input.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.44/linux/net/netlink.c linux/net/netlink.c
@@ -68,7 +68,7 @@
 static unsigned int netlink_poll(struct file *file, poll_table * wait)
 {
 	unsigned int mask;
-	unsigned int minor = MINOR(file->f_inode->i_rdev);
+	unsigned int minor = MINOR(file->f_dentry->d_inode->i_rdev);
 
 	poll_wait(&read_space_wait[minor], wait);
 	mask = POLLOUT | POLLWRNORM;

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