summaryrefslogtreecommitdiffstats
path: root/crypto/internal.h
diff options
context:
space:
mode:
authorPrateek Sood <prsood@codeaurora.org>2020-08-21 02:27:50 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-28 11:32:07 +0200
commit4965b8cd1bc1ffb017e5c58e622da82b55e49414 (patch)
tree2fa2de314dd49a03d2decb96a0eceaa9b2685042 /crypto/internal.h
parentd012a7190fc1fd72ed48911e77ca97ba4521bccd (diff)
downloadlinux-4965b8cd1bc1ffb017e5c58e622da82b55e49414.tar.bz2
firmware_loader: fix memory leak for paged buffer
vfree() is being called on paged buffer allocated using alloc_page() and mapped using vmap(). Freeing of pages in vfree() relies on nr_pages of struct vm_struct. vmap() does not update nr_pages. It can lead to memory leaks. Fixes: ddaf29fd9bb6 ("firmware: Free temporary page table after vmapping") Signed-off-by: Prateek Sood <prsood@codeaurora.org> Reviewed-by: Takashi Iwai <tiwai@suse.de> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/1597957070-27185-1-git-send-email-prsood@codeaurora.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/internal.h')
0 files changed, 0 insertions, 0 deletions