Advertisement
stnmrshx

Patch Memory Leak uart-ldisc in Bluetooth

Apr 19th, 2012
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.46 KB | None | 0 0
  1. ---
  2. drivers/bluetooth/hci_ldisc.c |    2 +-
  3. 1 file changed, 1 insertion(+), 1 deletion(-)
  4.  
  5. --- a/drivers/bluetooth/hci_ldisc.c
  6. +++ b/drivers/bluetooth/hci_ldisc.c
  7. @@ -237,7 +237,6 @@ static void hci_uart_destruct(struct hci
  8.         return;
  9.  
  10.     BT_DBG("%s", hdev->name);
  11. -   kfree(hdev->driver_data);
  12. }
  13.  
  14. /* ------ LDISC part ------ */
  15. @@ -316,6 +315,7 @@ static void hci_uart_tty_close(struct tt
  16.                 hci_free_dev(hdev);
  17.             }
  18.         }
  19. +       kfree(hu);
  20.     }
  21. }
  22.  
  23.  
  24.  
  25. --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement