patch-2.1.45 linux/drivers/scsi/sg.c
Next file: linux/drivers/scsi/tmscsim.c
Previous file: linux/drivers/scsi/scsi.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon Jul 14 11:33:25 1997
- Orig file:
v2.1.44/linux/drivers/scsi/sg.c
- Orig date:
Fri Apr 4 08:52:23 1997
diff -u --recursive --new-file v2.1.44/linux/drivers/scsi/sg.c linux/drivers/scsi/sg.c
@@ -488,7 +488,7 @@
static unsigned int sg_poll(struct file *file, poll_table * wait)
{
- int dev = MINOR(file->f_inode->i_rdev);
+ int dev = MINOR(file->f_dentry->d_inode->i_rdev);
struct scsi_generic *device = &scsi_generics[dev];
unsigned int mask = 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov