Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c81a90c8 authored by Stefan Weinhuber's avatar Stefan Weinhuber Committed by Martin Schwidefsky
Browse files

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: default avatarStefan Weinhuber <wein@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 302bfe20
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);

	/*