diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2010-05-02 10:21:21 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-21 18:37:28 +0200 |
commit | dd336c554d8926c3348a2d5f2a5ef5597f6d1a06 (patch) | |
tree | 457178c0d3189d6c3e02922aca36e528f4fc50a9 /fs/sysv | |
parent | drivers/base/cpu.c: fix the output from /sys/devices/system/cpu/offline (diff) | |
download | linux-dd336c554d8926c3348a2d5f2a5ef5597f6d1a06.tar.xz linux-dd336c554d8926c3348a2d5f2a5ef5597f6d1a06.zip |
firmware_class: fix memory leak - free allocated pages
fix memory leak introduced by the patch 6e03a201bbe:
firmware: speed up request_firmware()
1. vfree won't release pages there were allocated explicitly and mapped
using vmap. The memory has to be vunmap-ed and the pages needs
to be freed explicitly
2. page array is moved into the 'struct
firmware' so that we can free it from release_firmware()
and not only in fw_dev_release()
The fix doesn't break the firmware load speed.
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Ming Lei <tom.leiming@gmail.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Singed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysv')
0 files changed, 0 insertions, 0 deletions