mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
ISDN, hfcsusb: Don't leak in hfcsusb_ph_info()
We leak the memory allocated to 'phi' when the variable goes out of scope in hfcsusb_ph_info(). Signed-off-by: Jesper Juhl <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
83fe32de63
commit
84860c7253
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue