staging: rtl8192u: release memory on error path
PATCH 1/1 staging: rtl8192u: release memory on error path
In rtl819xU_tx_cmd if usb_submit_urb fails the allocated memories should be released.
Signed-off-by Navid Emamdoost <[email protected]>
--- drivers/staging/rtl8192u/r8192U_core.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/staging/rtl8192u/r8192U_core.c +2 -0
@@ -1232,6 +1232,8 @@ short rtl819xU_tx_cmd(struct net_device *dev, struct sk_buff *skb)return 0 ;DMESGE ("Error TX CMD URB, error %d" , status); +dev_kfree_skb (skb); +usb_free_urb (tx_urb);return -1 ; }
Signature · 1 line
2.17.1