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:
3a349ce
)
staging: gdm72xx: potential use after free in send_qos_list()
author
Dan Carpenter
<
[email protected]
>
Mon, 22 Jul 2013 08:00:53 +0000
(11:00 +0300)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 23 Jul 2013 22:08:50 +0000
(15:08 -0700)
Sometimes free_qos_entry() sometimes frees its argument. I have moved
the dereference of "entry" ahead on line to avoid a use after free.
Signed-off-by: Dan Carpenter <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/gdm72xx/gdm_qos.c
patch
|
blob
|
history
diff --git
a/drivers/staging/gdm72xx/gdm_qos.c
b/drivers/staging/gdm72xx/gdm_qos.c
index b795353e8348a3fcab6d1a01d0472a7168c370a1..cc3692439a5c95fedc0f2c584a52b3d03c0bf391 100644
(file)
--- a/
drivers/staging/gdm72xx/gdm_qos.c
+++ b/
drivers/staging/gdm72xx/gdm_qos.c
@@
-250,8
+250,8
@@
static void send_qos_list(struct nic *nic, struct list_head *head)
list_for_each_entry_safe(entry, n, head, list) {
list_del(&entry->list);
- free_qos_entry(entry);
gdm_wimax_send_tx(entry->skb, entry->dev);
+ free_qos_entry(entry);
}
}