Commit 6fc7431dc0775f21ad7a7a39c2ad0290291a56ea

Authored by Masakazu Mokuno
Committed by John W. Linville
1 parent 36d16ae73b

PS3: gelic: fix memory leak

This fixes the bug that the I/O buffer is not freed at the driver removal.

Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

drivers/net/ps3_gelic_wireless.c
... ... @@ -2474,6 +2474,8 @@
2474 2474  
2475 2475 pr_debug("%s: <-\n", __func__);
2476 2476  
  2477 + free_page((unsigned long)wl->buf);
  2478 +
2477 2479 pr_debug("%s: destroy queues\n", __func__);
2478 2480 destroy_workqueue(wl->eurus_cmd_queue);
2479 2481 destroy_workqueue(wl->event_queue);