git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'for-upstream' of git://openrisc.net/jonas/linux
[pandora-kernel.git]
/
drivers
/
firmware
/
iscsi_ibft.c
diff --git
a/drivers/firmware/iscsi_ibft.c
b/drivers/firmware/iscsi_ibft.c
index
ce33f46
..
c811cb1
100644
(file)
--- a/
drivers/firmware/iscsi_ibft.c
+++ b/
drivers/firmware/iscsi_ibft.c
@@
-566,6
+566,11
@@
static mode_t __init ibft_check_initiator_for(void *data, int type)
return rc;
}
return rc;
}
+static void ibft_kobj_release(void *data)
+{
+ kfree(data);
+}
+
/*
* Helper function for ibft_register_kobjects.
*/
/*
* Helper function for ibft_register_kobjects.
*/
@@
-595,7
+600,8
@@
static int __init ibft_create_kobject(struct acpi_table_ibft *header,
boot_kobj = iscsi_boot_create_initiator(boot_kset, hdr->index,
ibft_kobj,
ibft_attr_show_initiator,
boot_kobj = iscsi_boot_create_initiator(boot_kset, hdr->index,
ibft_kobj,
ibft_attr_show_initiator,
- ibft_check_initiator_for);
+ ibft_check_initiator_for,
+ ibft_kobj_release);
if (!boot_kobj) {
rc = -ENOMEM;
goto free_ibft_obj;
if (!boot_kobj) {
rc = -ENOMEM;
goto free_ibft_obj;
@@
-610,7
+616,8
@@
static int __init ibft_create_kobject(struct acpi_table_ibft *header,
boot_kobj = iscsi_boot_create_ethernet(boot_kset, hdr->index,
ibft_kobj,
ibft_attr_show_nic,
boot_kobj = iscsi_boot_create_ethernet(boot_kset, hdr->index,
ibft_kobj,
ibft_attr_show_nic,
- ibft_check_nic_for);
+ ibft_check_nic_for,
+ ibft_kobj_release);
if (!boot_kobj) {
rc = -ENOMEM;
goto free_ibft_obj;
if (!boot_kobj) {
rc = -ENOMEM;
goto free_ibft_obj;
@@
-625,7
+632,8
@@
static int __init ibft_create_kobject(struct acpi_table_ibft *header,
boot_kobj = iscsi_boot_create_target(boot_kset, hdr->index,
ibft_kobj,
ibft_attr_show_target,
boot_kobj = iscsi_boot_create_target(boot_kset, hdr->index,
ibft_kobj,
ibft_attr_show_target,
- ibft_check_tgt_for);
+ ibft_check_tgt_for,
+ ibft_kobj_release);
if (!boot_kobj) {
rc = -ENOMEM;
goto free_ibft_obj;
if (!boot_kobj) {
rc = -ENOMEM;
goto free_ibft_obj;