firmware: Free temporary page table after vmapping
authorTakashi Iwai <tiwai@suse.de>
Mon, 20 May 2019 09:26:43 +0000 (11:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2019 17:20:36 +0000 (19:20 +0200)
commitddaf29fd9bb6a8192153bc097615765d202b0ab3
tree645a403be079231588e7b34bbd4edf8298df2020
parent64ae0e71c60dc4bd3a59ae709b807f96f68df495
firmware: Free temporary page table after vmapping

Once after performing vmap() to map the S/G pages, our own page table
becomes superfluous since the pages can be released via vfree()
automatically.  Let's change the buffer release code and discard the
page table array for saving some memory.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_loader/fallback.c
drivers/base/firmware_loader/main.c