浏览代码

staging: ath6kl: Fixing a memory leak

Fix for a memory leak discovered during suspend/resume testing.

Signed-off-by: Vipin Mehta <vmehta@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Vipin Mehta 14 年之前
父节点
当前提交
1581595dd9
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/staging/ath6kl/os/linux/ar6000_drv.c

+ 3 - 0
drivers/staging/ath6kl/os/linux/ar6000_drv.c

@@ -2052,6 +2052,9 @@ ar6000_stop_endpoint(struct net_device *dev, bool keepprofile, bool getdbglogs)
     }
     }
        /* Done with cookies */
        /* Done with cookies */
     ar6000_cookie_cleanup(ar);
     ar6000_cookie_cleanup(ar);
+
+    /* cleanup any allocated AMSDU buffers */
+    ar6000_cleanup_amsdu_rxbufs(ar);
 }
 }
 /*
 /*
  * We need to differentiate between the surprise and planned removal of the
  * We need to differentiate between the surprise and planned removal of the