diff options
author | Stefan Weinhuber <wein@de.ibm.com> | 2013-10-25 09:08:06 (GMT) |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-10-28 07:36:27 (GMT) |
commit | c81a90c853f183a8946af77ed9272ac61d78c077 (patch) | |
tree | d326c6c4d9d89c1c0c5199a56a136c45dbadb5e7 /drivers/s390 | |
parent | 302bfe20ade2a7d6d02632ae8a775a68f651c0be (diff) | |
download | linux-fsl-qoriq-c81a90c853f183a8946af77ed9272ac61d78c077.tar.xz |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c index 451bf99..244f77f 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); /* |