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

Commit 808e4888 authored by Michael Ernst's avatar Michael Ernst Committed by Martin Schwidefsky
Browse files

[S390] cio: memory leak in cio processing



Allocated kernel memory for locks is not freed in case of subchannel found
to be invalid.

Signed-off-by: default avatarMichael Ernst <mernst@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 1a908c73
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -577,8 +577,11 @@ cio_validate_subchannel (struct subchannel *sch, struct subchannel_id schid)
	}

	/* Initialization for io subchannels. */
	if (!css_sch_is_valid(&sch->schib))
		return -ENODEV;
	if (!css_sch_is_valid(&sch->schib)) {
		err = -ENODEV;
		goto out;
	}

	/* Devno is valid. */
	if (is_blacklisted (sch->schid.ssid, sch->schib.pmcw.dev)) {
		/*