Commit 0abccf77 authored by Stefan Haberland's avatar Stefan Haberland Committed by Martin Schwidefsky
Browse files

[S390] add missing device put

The dasd_alias_show function does not return a device reference
in case the device is an alias.
Signed-off-by: default avatarStefan Haberland <>
Signed-off-by: default avatarMartin Schwidefsky <>
parent cffab6bc
......@@ -948,8 +948,10 @@ static ssize_t dasd_alias_show(struct device *dev,
if (device->discipline && device->discipline->get_uid &&
!device->discipline->get_uid(device, &uid)) {
if (uid.type == UA_BASE_PAV_ALIAS ||
uid.type == UA_HYPER_PAV_ALIAS)
uid.type == UA_HYPER_PAV_ALIAS) {
return sprintf(buf, "1\n");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment