summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorStefan Weinhuber <wein@de.ibm.com>2013-10-25 11:08:06 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-10-28 08:36:27 +0100
commitc81a90c853f183a8946af77ed9272ac61d78c077 (patch)
treed326c6c4d9d89c1c0c5199a56a136c45dbadb5e7 /drivers/s390
parents390: convert use of typedef ctl_table to struct ctl_table (diff)
downloadlinux-c81a90c853f183a8946af77ed9272ac61d78c077.tar.xz
linux-c81a90c853f183a8946af77ed9272ac61d78c077.zip
s390/dasd: Write to profile data area only if it is available
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>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/block/dasd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c
index 451bf99582ff..244f77f844f0 100644
--- 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);
/*