diff options
author | Masakazu Mokuno <mokuno@sm.sony.co.jp> | 2008-05-12 13:50:28 +0900 |
---|---|---|
committer | Chris Wright <chrisw@sous-sol.org> | 2008-06-09 11:27:03 -0700 |
commit | 4d5f1d695a285331c793d58187e5ffddcbcc6a23 (patch) | |
tree | fcc9c45dfe83504b1ec276104de26576cd14d0e0 | |
parent | ad47080745eb5290a7883997ce7f8e317c5b241a (diff) | |
download | lwn-4d5f1d695a285331c793d58187e5ffddcbcc6a23.tar.gz lwn-4d5f1d695a285331c793d58187e5ffddcbcc6a23.zip |
PS3: gelic: fix memory leak
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>
-rw-r--r-- | drivers/net/ps3_gelic_wireless.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ps3_gelic_wireless.c b/drivers/net/ps3_gelic_wireless.c index c16de5129a71..42daf858749f 100644 --- a/drivers/net/ps3_gelic_wireless.c +++ b/drivers/net/ps3_gelic_wireless.c @@ -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); |