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:
83fe32d
)
ISDN, hfcsusb: Don't leak in hfcsusb_ph_info()
author
Jesper Juhl
<jj@chaosbits.net>
Sat, 11 Jun 2011 06:36:42 +0000
(06:36 +0000)
committer
David S. Miller
<davem@davemloft.net>
Sun, 12 Jun 2011 01:59:07 +0000
(18:59 -0700)
We leak the memory allocated to 'phi' when the variable goes out of scope
in hfcsusb_ph_info().
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hardware/mISDN/hfcsusb.c
patch
|
blob
|
history
diff --git
a/drivers/isdn/hardware/mISDN/hfcsusb.c
b/drivers/isdn/hardware/mISDN/hfcsusb.c
index 3ccbff13eaf238541beb0564542db9a647cbdd8b..71a8eb6ef71ead7efca9b247f205aef4cca86817 100644
(file)
--- a/
drivers/isdn/hardware/mISDN/hfcsusb.c
+++ b/
drivers/isdn/hardware/mISDN/hfcsusb.c
@@
-283,6
+283,7
@@
hfcsusb_ph_info(struct hfcsusb *hw)
_queue_data(&dch->dev.D, MPH_INFORMATION_IND, MISDN_ID_ANY,
sizeof(struct ph_info_dch) + dch->dev.nrbchan *
sizeof(struct ph_info_ch), phi, GFP_ATOMIC);
+ kfree(phi);
}
/*