diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2013-04-13 13:06:27 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-04-17 14:07:33 +0200 |
commit | 0ad8f714a135cf993606c21fc1ed0e303ef17c0d (patch) | |
tree | 78ce400a47edecdce1921f2bb6cc536009778bb5 /drivers/s390/kvm | |
parent | 4e5ebd51214a1851841f952e9e5b5072ce5f9da4 (diff) |
s390/cio: fix early init counter usage
Via ccw_device_init_count we keep track of how many devices are in
asynchronous device recognition/initialization. For early devices this
variable was not only used prior to its initialization but used
incorrectly (incremented but never decremented). Fix this by using static
initialization for this variable (and friends), make them visible to
device.c only, and decrement the counter after recognition of early
devices is finished.
Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/kvm')
0 files changed, 0 insertions, 0 deletions