diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-04-02 22:04:48 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-03 00:28:19 +0200 |
commit | 212e7bb6cda5dd3c4ad97a7aedef705028ced4ad (patch) | |
tree | f2257e37b2bd8e10c25be610c1648f627efaf525 /drivers/char/rio/riotable.c | |
parent | Char: ip2, fix sparse warnings (diff) | |
download | linux-212e7bb6cda5dd3c4ad97a7aedef705028ced4ad.tar.xz linux-212e7bb6cda5dd3c4ad97a7aedef705028ced4ad.zip |
Char: rio, fix sparse warnings
Add some locks and unlocks to some code paths.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/rio/riotable.c')
-rw-r--r-- | drivers/char/rio/riotable.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/char/rio/riotable.c b/drivers/char/rio/riotable.c index 991119c9f473..9b52892a501f 100644 --- a/drivers/char/rio/riotable.c +++ b/drivers/char/rio/riotable.c @@ -425,8 +425,10 @@ int RIOApel(struct rio_info *p) MapP = &p->RIOConnectTable[Next++]; MapP->HostUniqueNum = HostP->UniqueNum; - if ((HostP->Flags & RUN_STATE) != RC_RUNNING) + if ((HostP->Flags & RUN_STATE) != RC_RUNNING) { + rio_spin_unlock_irqrestore(&HostP->HostLock, flags); continue; + } MapP->RtaUniqueNum = 0; MapP->ID = 0; MapP->Flags = SLOT_IN_USE; |