Some patches (2.1.126)

Andrzej Krzysztofowicz (ankry@green.mif.pg.gda.pl)
Wed, 28 Oct 1998 21:07:09 +0100 (CET)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--328796202-1126334667-909605229=:1040
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,
I enclose two patches (against 2.1.126) which correct the following
problems:

* floppy
When no floppy controller was present or floppy driver does not initiate
properly (for any reason) it did not free resources. The main problem
was that a bh initiated by the driver might run *after* the
cleanup_module() has finished (keeping resources and, possibly,
working on non-allocated memory). Alan Cox has already included
a similar patch for 2.0 in his 2.0.36pre stuff.

[ I believe thgis problem has been the reason of Oops-es I observed
while trying to mount a non-fat floppy with "-tfat"... After applying
this patch problems disappear ]

* xd
Thanks to Christopher Peterson <cpeterso@microsoft.com> for finding
a typo (an extra semicolon) in init_module().
Also removed two (buggy) entries for non-existent WD controllers.
All controllers I have and all controllers I heard other people use, have
BIOSes fitting into two other entries for WD cards (with *NO*
whitespace between "(C)" and tha date string. The entries with
spaces there are the most probably typos, which have been there for
years...

Regards

--
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  tel.  (0-58) 347 14 61
Wydz.Fizyki Technicznej i Matematyki Stosowanej Politechniki Gdanskiej

--328796202-1126334667-909605229=:1040 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="patch.floppy.2.1.126pre2" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.3.96.981028210708.1040B@green.mif.pg.gda.pl> Content-Description: Floppy patch

ZGlmZiAtdSAtLXJlY3Vyc2l2ZSAtLW5ldy1maWxlIGxpbnV4LTIuMS4xMjZw cmUyLWFoMDIvZHJpdmVycy9ibG9jay9mbG9wcHkuYyBsaW51eC9kcml2ZXJz L2Jsb2NrL2Zsb3BweS5jDQotLS0gbGludXgtMi4xLjEyNnByZTItYWgwMi9k cml2ZXJzL2Jsb2NrL2Zsb3BweS5j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lOw0KIAkJfQ0KQEAgLTQyMDksNiArNDIxNiwxMiBAQA0K IAlpZiAoaGF2ZV9ub19mZGMpIA0KIAl7DQogCQlEUFJJTlQoIm5vIGZsb3Bw eSBjb250cm9sbGVycyBmb3VuZFxuIik7DQorIAkJZmxvcHB5X3RxLnJvdXRp bmUgPSAodm9pZCAqKSh2b2lkICopIGVtcHR5Ow0KKwkJbWFya19iaChJTU1F RElBVEVfQkgpOw0KKwkJc2NoZWR1bGUoKTsNCisgCQlpZiAodXNhZ2VfY291 bnQpDQorIAkJCWZsb3BweV9yZWxlYXNlX2lycV9hbmRfZG1hKCk7DQorIAkJ YmxrX2RldltNQUpPUl9OUl0ucmVxdWVzdF9mbiA9IE5VTEw7DQogCQl1bnJl Z2lzdGVyX2Jsa2RldihNQUpPUl9OUiwiZmQiKTsJCQ0KIAl9DQogCXJldHVy biBoYXZlX25vX2ZkYzsNCg== --328796202-1126334667-909605229=:1040 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="patch.xd.2.1.126pre2" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.3.96.981028210709.1040C@green.mif.pg.gda.pl> Content-Description: XT disk patch

ZGlmZiAtdSAtLXJlY3Vyc2l2ZSAtLW5ldy1maWxlIGxpbnV4LTIuMS4xMjZw cmUyLWFoMDIvZHJpdmVycy9ibG9jay94ZC5jIGxpbnV4L2RyaXZlcnMvYmxv Y2sveGQuYw0KLS0tIGxpbnV4LTIuMS4xMjZwcmUyLWFoMDIvZHJpdmVycy9i bG9jay94ZC5jCVdlZCBPY3QgMjggMDI6MjI6MjAgMTk5OA0KKysrIGxpbnV4 L2RyaXZlcnMvYmxvY2sveGQuYwlXZWQgT2N0IDI4IDAyOjM5OjE0IDE5OTgN CkBAIC0xMDgsOSArMTA4LDcgQEANCiAJeyAweDAwMDgsIltCWEQwNiAoQykg RFRDIDE3LU1BWS0xOTg1XSIseGRfZHRjX2luaXRfY29udHJvbGxlcix4ZF9k dGM1MTUwY3hfaW5p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kpDQogCQkJeGRfc2V0dXAo TlVMTCwgeGQpOw0KIAkJeGRfZ2VuaW5pdCgmKHN0cnVjdCBnZW5kaXNrKSB7 IDAsMCwwLDAsMCwwLDAsMCwwLDAsMCB9KTsNCiAJCWlmICgheGRfZHJpdmVz KSB7DQo= --328796202-1126334667-909605229=:1040--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/