mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 16:29:05 +00:00
[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: Stefan Haberland <stefan.haberland@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
cffab6bc55
commit
0abccf7740
@ -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) {
|
||||
dasd_put_device(device);
|
||||
return sprintf(buf, "1\n");
|
||||
}
|
||||
}
|
||||
dasd_put_device(device);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user