diff options
| author | Bartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl> | 2003-11-03 16:01:16 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-11-03 16:01:16 -0800 |
| commit | 0d308a7943836128c5bf48cd643b0594f7cc8a9e (patch) | |
| tree | 2d59123d48a3008dabfb6395f3567d08b080a211 /drivers | |
| parent | 49c198656bef58a75e8c91b28be337d8f56221ad (diff) | |
[PATCH] fix ide-tape oops
Set filp->private_data in idetape_chrdev_open() to point to a opened drive,
otherwise driver oopses during future access to tape character device.
Thanks to Stef van der Made <svdmade@planet.nl> for testing ide-tape fixes.
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/ide/ide-tape.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 6c8c067df5a7..115811404886 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c @@ -5581,6 +5581,7 @@ static int idetape_chrdev_open (struct inode *inode, struct file *filp) return -ENXIO; drive = idetape_chrdevs[i].drive; tape = drive->driver_data; + filp->private_data = drive; if (test_and_set_bit(IDETAPE_BUSY, &tape->flags)) return -EBUSY; |
