]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
PS3: gelic: fix memory leak
authorMasakazu Mokuno <mokuno@sm.sony.co.jp>
Mon, 12 May 2008 04:50:28 +0000 (13:50 +0900)
committerChris Wright <chrisw@sous-sol.org>
Mon, 9 Jun 2008 18:27:03 +0000 (11:27 -0700)
upstream commit: 6fc7431dc0775f21ad7a7a39c2ad0290291a56ea

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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/net/ps3_gelic_wireless.c

index c16de5129a71557f43880236a9f81eee8bd45559..42daf858749f451407c2b17571e5541987552b0d 100644 (file)
@@ -2474,6 +2474,8 @@ static void gelic_wl_free(struct gelic_wl_info *wl)
 
        pr_debug("%s: <-\n", __func__);
 
+       free_page((unsigned long)wl->buf);
+
        pr_debug("%s: destroy queues\n", __func__);
        destroy_workqueue(wl->eurus_cmd_queue);
        destroy_workqueue(wl->event_queue);