projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67a3e12
)
SFI: do not return freed pointer
author
Dan Carpenter
<error27@gmail.com>
Fri, 28 May 2010 10:33:15 +0000
(12:33 +0200)
committer
Len Brown
<len.brown@intel.com>
Tue, 1 Jun 2010 16:04:35 +0000
(12:04 -0400)
We never actually use the return value of sfi_sysfs_install_table() but
it still seems wrong to return a freed pointer.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/sfi/sfi_core.c
patch
|
blob
|
history
diff --git
a/drivers/sfi/sfi_core.c
b/drivers/sfi/sfi_core.c
index 005195958647b03acded28a822bfd7374744d210..ceba593dc84fbcb994f1fb4968cab3b4adf05b83 100644
(file)
--- a/
drivers/sfi/sfi_core.c
+++ b/
drivers/sfi/sfi_core.c
@@
-441,8
+441,10
@@
struct sfi_table_attr __init *sfi_sysfs_install_table(u64 pa)
ret = sysfs_create_bin_file(tables_kobj,
&tbl_attr->attr);
- if (ret)
+ if (ret)
{
kfree(tbl_attr);
+ tbl_attr = NULL;
+ }
sfi_unmap_table(th);
return tbl_attr;