cd-rom weirdness (2.1.50)

Manuel J. Galan (manolow@step.es)
Sun, 17 Aug 1997 00:09:37 +0100 (WET DST)


---1463811840-269167349-871772990=:316
Content-Type: TEXT/plain; CHARSET=US-ASCII

There is i typho in sr.c, gcc only gives a warning but I think that
is dangerous...
-------------------------------------------------------------------
--- sr.c.orig Sun Aug 17 00:07:07 1997
+++ sr.c Fri Aug 15 19:10:15 1997
@@ -1007,12 +1007,13 @@
for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++)
if(cpnt->device == SDp) {
kdev_t devi = MKDEV(MAJOR_NR, i);
+ struct super_block * sb = get_super(devi);

/*
* Since the cdrom is read-only, no need to sync the device.
* We should be kind to our buffer cache, however.
*/
- invalidate_inodes(devi);
+ if (sb) invalidate_inodes(sb);
invalidate_buffers(devi);

/*
--------------------------------------------

-- 
Manuel J. Galan
manolow@step.es

---1463811840-269167349-871772990=:316 Content-Type: APPLICATION/pgp-signature

-----BEGIN PGP MESSAGE----- Version: 2.6.3ia Comment: Requires PGP version 2.6 or later.

iQB1AgUBM/YzN9LJkgqGw1hxAQGhWAMAkutvJJZ3oXg5L4UW+GaCIfIfrIg+C/wa jGn5VfxC4r1r5RlprOf/HQYFVrBxBQvUxbr73GEnhR7CqG0cAc6z7bqvasDDkWz2 0eWOZ5c3vwpIb1PLer3Mpjyt6PZAdtuE =seUd -----END PGP MESSAGE-----

---1463811840-269167349-871772990=:316--