[PATCH] emu10k1 missing unlock's

©[@ÄØÿ¿8þÿ¿Andrew Morton (rui.sousa@conexant.com)
Wed, 17 Jan 2001 14:47:03 +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.

--8323328-1418531814-979739223=:1623
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,

The emu10k1 driver is missing a few unlocks on error exit paths.
Patch attached against 2.4.1-pre8.

Rui Sousa

--8323328-1418531814-979739223=:1623
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="emu10k1-2.4.1-pre8.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.30.0101171447030.1623@localhost.localdomain>
Content-Description: patch
Content-Disposition: attachment; filename="emu10k1-2.4.1-pre8.patch"

ZGlmZiAtdU5yIGxpbnV4LTIuNC4xLXByZTgvZHJpdmVycy9zb3VuZC9lbXUx
MGsxL2F1ZGlvLmMgbGludXgtMi40LjEtcHJlOC5uZXcvZHJpdmVycy9zb3Vu
ZC9lbXUxMGsxL2F1ZGlvLmMNCi0tLSBsaW51eC0yLjQuMS1wcmU4L2RyaXZl
cnMvc291bmQvZW11MTBrMS9hdWRpby5jCVRodSBTZXAgMjEgMjI6MjU6MDkg
MjAwMA0KKysrIGxpbnV4LTIuNC4xLXByZTgubmV3L2RyaXZlcnMvc291bmQv
ZW11MTBrMS9hdWRpby5jCVdlZCBKYW4gMTcgMTM6NTI6NTAgMjAwMQ0KQEAg
LTM3NSw4ICszNzUsMTAgQEANCiAJCQkJZm9ybWF0ID0gd2lpbnN0LT5mb3Jt
YXQ7DQogCQkJCWZvcm1hdC5zYW1wbGluZ3JhdGUgPSB2YWw7DQogDQotCQkJ
CWlmIChlbXUxMGsxX3dhdmVpbl9zZXRmb3JtYXQod2F2ZV9kZXYsICZmb3Jt
YXQpIDwgMCkNCisJCQkJaWYgKGVtdTEwazFfd2F2ZWluX3NldGZvcm1hdCh3
YXZlX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11MTBrMV93YXZlb3V0X3NldGZvcm1hdCh3YXZlX2RldiwgJmZvcm1h
dCkgPCAwKSB7DQorCQkJCQlzcGluX3VubG9ja19pcnFyZXN0b3JlKCZ3b2lu
c3QtPmxvY2ssIGZsYWdzKTsNCiAJCQkJCXJldHVybiAtRUlOVkFMOw0KKwkJ
CQl9DQogDQogCQkJCXZhbCA9IHdvaW5zdC0+Zm9ybWF0LmJpdHNwZXJjaGFu
bmVsOw0KIA0KQEAgLTk2OCw2ICs5ODQsNyBAQA0KIAkJZm9yIChpID0gMDsg
aSA8IHdvaW5zdC0+YnVmZmVyLnBhZ2VzOyBpKyspIHsNCiAJCQlpZiAocmVt
YXBfcGFnZV9yYW5nZSh2bWEtPnZtX3N0YXJ0ICsgKGkgKiBQQUdFX1NJWkUp
LCB2aXJ0X3RvX3BoeXMod29pbnN0LT5idWZmZXIuYWRkcltpXSksIFBBR0Vf
U0laRSwgdm1hLT52bV9wYWdlX3Byb3QpKSB7DQogCQkJCXNwaW5fdW5sb2Nr
X2lycXJlc3RvcmUoJndvaW5zdC0+bG9jaywgZmxhZ3MpOw0KKwkJCQl1bmxv
Y2tfa2VybmVsKCk7DQogCQkJCXJldHVybiAtRUFHQUlOOw0KIAkJCX0NCiAJ
CX0NCg==
--8323328-1418531814-979739223=:1623--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/