---2084555674-369813718-1041265712=:1848
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.4.33L2.0212301128391.1848@ida.rowland.org>
Alan:
Here is another copy of my multiple-bug-fix patch for the ide-tape driver,
as of 2.5.53. The corresponding patch for 2.4.21 has already been
accepted by Marcelo. Please apply this to the current kernel (or send it
on up the line) when you have a chance.
Thanks.
Alan Stern
---2084555674-369813718-1041265712=:1848
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="ide-tape.c.patch-2.5.53"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.33L2.0212301128320.1848@ida.rowland.org>
Content-Description: Patch for ide-tape driver, 2.5.53
Content-Disposition: ATTACHMENT; FILENAME="ide-tape.c.patch-2.5.53"
LS0tIGxpbnV4L2RyaXZlcnMvaWRlL2lkZS10YXBlLmMub3JpZwlNb24gRGVj
ICA5IDE0OjQyOjA3IDIwMDINCisrKyBsaW51eC9kcml2ZXJzL2lkZS9pZGUt
dGFwZS5jCVR1ZSBEZWMgMTAgMTU6NDA6MTkgMjAwMg0KQEAgLTEsNSArMSw1
IEBADQogLyoNCi0gKiBsaW51eC9kcml2ZXJzL2lkZS9pZGUtdGFwZS5jCQlW
ZXJzaW9uIDEuMTdhCUphbiwgMjAwMQ0KKyAqIGxpbnV4L2RyaXZlcnMvaWRl
L2lkZS10YXBlLmMJCVZlcnNpb24gMS4xN2IJT2N0LCAyMDAyDQogICoNCiAg
KiBDb3B5cmlnaHQgKEMpIDE5OTUgLSAxOTk5IEdhZGkgT3htYW4gPGdhZGlv
QG5ldHZpc2lvbi5uZXQuaWw+DQogICoNCkBAIC0yOTEsNiArMjkxLDI4IEBA
DQogICogVmVyIDEuMTdhIEFwciAyMDAxIFdpbGxlbSBSaWVkZSBvc3N0QHJp
ZWRlLm9yZw0KICAqIAkJCS0gR2V0IGRyaXZlJ3MgYWN0dWFsIGJsb2NrIHNp
emUgZnJvbSBtb2RlIHNlbnNlIGJsb2NrIGR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VkICogMTI1
KTsNCg==
---2084555674-369813718-1041265712=:1848--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/