projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[S390] proper use of device register
[deliverable/linux.git]
/
drivers
/
s390
/
crypto
/
ap_bus.c
diff --git
a/drivers/s390/crypto/ap_bus.c
b/drivers/s390/crypto/ap_bus.c
index ed3dcdea7fe10cb7b521f7ccdb78a1bb5bfc86cc..ae9ab240c7f13f5dd612564f7795c31d243d9782 100644
(file)
--- a/
drivers/s390/crypto/ap_bus.c
+++ b/
drivers/s390/crypto/ap_bus.c
@@
-1114,7
+1114,7
@@
static void ap_scan_bus(struct work_struct *unused)
ap_dev->device.release = ap_device_release;
rc = device_register(&ap_dev->device);
if (rc) {
-
kfree(ap_dev
);
+
put_device(&ap_dev->device
);
continue;
}
/* Add device attributes. */
This page took
0.028255 seconds
and
5
git commands to generate.