projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
302bfe2
)
s390/dasd: Write to profile data area only if it is available
author
Stefan Weinhuber
<wein@de.ibm.com>
Fri, 25 Oct 2013 09:08:06 +0000
(11:08 +0200)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Mon, 28 Oct 2013 07:36:27 +0000
(08:36 +0100)
We check for the existence of block->profile.data before we write to
it, but the dependent code block misses braces.
Signed-off-by: Stefan Weinhuber <wein@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/s390/block/dasd.c
b/drivers/s390/block/dasd.c
index 451bf99582ff09948c04e6634ca2d381c0d6a45a..244f77f844f020afec60f072694f7c70bcaadb8a 100644
(file)
--- a/
drivers/s390/block/dasd.c
+++ b/
drivers/s390/block/dasd.c
@@
-698,10
+698,11
@@
static void dasd_profile_start(struct dasd_block *block,
}
spin_lock(&block->profile.lock);
- if (block->profile.data)
+ if (block->profile.data)
{
block->profile.data->dasd_io_nr_req[counter]++;
if (rq_data_dir(req) == READ)
block->profile.data->dasd_read_nr_req[counter]++;
+ }
spin_unlock(&block->profile.lock);
/*