diff options
| author | Duncan Sands <baldrick@wanadoo.fr> | 2003-01-22 07:11:37 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2003-01-22 07:11:37 +0800 |
| commit | c0cebfa436e3ce3a1bcfc068c70f315a735d4871 (patch) | |
| tree | fe4a69c2facd113cb102b1ba4b5af30e0758c874 /include/linux | |
| parent | 652c510a44baf280777f4d421cdac1c79156ef2c (diff) | |
[PATCH] USB: turn speedtouch micro race into a nano race
speedtouch: turn a micro race into a nano race. The race is that an ATM device can
be used the moment atm_dev_register returns, but you only get to fill out the
atm_dev structure after atm_dev_register returns (this is a design flaw in the
ATM layer). Thus there is a small window during which you can be called with an
incompletely set up data structure. Workaround this by causing all ATM callbacks
to fail if the dev_data field has not been set. There is still a nano race if
writing/reading the dev_data field is not atomic. Is it atomic on all architectures?
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
