projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e89f769
)
net/wireless/wext-core.c: add missing kfree
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Mon, 9 Apr 2012 09:01:09 +0000
(11:01 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 9 Apr 2012 19:54:50 +0000
(15:54 -0400)
Free extra as done in the error-handling code just above.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/wext-core.c
patch
|
blob
|
blame
|
history
diff --git
a/net/wireless/wext-core.c
b/net/wireless/wext-core.c
index 0af7f54e4f617f04c7dbab24e09a6b53fc4c9dd2..af648e08e61b7f279dd99b8e87797148d746dd2a 100644
(file)
--- a/
net/wireless/wext-core.c
+++ b/
net/wireless/wext-core.c
@@
-780,8
+780,10
@@
static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd,
if (cmd == SIOCSIWENCODEEXT) {
struct iw_encode_ext *ee = (void *) extra;
- if (iwp->length < sizeof(*ee) + ee->key_len)
- return -EFAULT;
+ if (iwp->length < sizeof(*ee) + ee->key_len) {
+ err = -EFAULT;
+ goto out;
+ }
}
}