staging: gasket: page_table: handle failed dma_map_page
authorNick Ewalt <nicholasewalt@google.com>
Mon, 17 Sep 2018 12:39:05 +0000 (05:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2018 11:22:01 +0000 (13:22 +0200)
commit08b6b28801cc5226283a3a1e1fbd3ea4c9ade7c9
treee32ddfadd69dbbbe1ab415343f044ec369cfa14c
parent0eaf57fb6150ac6a416cec471ab9db98740501fd
staging: gasket: page_table: handle failed dma_map_page

Handle dma_map_page failing in gasket_alloc_extended_subtable: free
memory, don't add invalid page table entry.

Signed-off-by: Nick Ewalt <nicholasewalt@google.com>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_page_table.c