Re: eject /dev/cdrom --> oops. (patch)

Erik Andersen (andersee@debian.org)
Wed, 29 Oct 1997 00:54:44 -0700


On Wed, Oct 29, 1997 at 03:19:52AM +0000, David Woodhouse wrote:
>
> Apparently the problem was caused by trying to mount my IDE cd when the drive
> was empty. The vfsmntlist was ending up with an entry in which xxx->mnt_sb->
> s_type == NULL, so the references to tmp->mnt_sb->s_type->name in
> get_filesystem_info weren't particularly happy.
>
> This isn't a real fix, but at least it stops the oopses by checking for that
> case and not attempting to dereference the pointer. I believe the real problem
> is in the CD drivers - attempting to mount an empty floppy drive doesn't
> produce the same problems.
>
> This is against the vger snapshot of 971020. When's the next one due?
[---------patch snipped--------------]

Hmm. ide-cd should not oops when trying to mount an empty CD slot. It doesn't Oops for me when doing this on my ATAPI cdrom.

-Erik

--
Erik B. Andersen   Web:    http://www.inconnect.com/~andersen/ 
                   email:  andersee@debian.org
--This message was written using 73% post-consumer electrons--