mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
s390/cio: fix unlocked access of global bitmap
Access to the slow_subchannel_set has to be secured via the slow_subchannel_lock. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
57b5918c33
commit
eb072a7996
1 changed files with 2 additions and 0 deletions
|
@ -546,7 +546,9 @@ static int slow_eval_unknown_fn(struct subchannel_id schid, void *data)
|
|||
case -ENOMEM:
|
||||
case -EIO:
|
||||
/* These should abort looping */
|
||||
spin_lock_irq(&slow_subchannel_lock);
|
||||
idset_sch_del_subseq(slow_subchannel_set, schid);
|
||||
spin_unlock_irq(&slow_subchannel_lock);
|
||||
break;
|
||||
default:
|
||||
rc = 0;
|
||||
|
|
Loading…
Reference in a new issue