staging: gasket: page table: fixup error path allocating coherent mem
authorNick Ewalt <nicholasewalt@google.com>
Mon, 15 Oct 2018 04:59:22 +0000 (21:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Oct 2018 14:30:37 +0000 (16:30 +0200)
commit54be7ec98875e3061e6ae788d6e7088cffa5ed2e
tree93e087df3b92fe62dbb5c9e145127cb8489da420
parent53f8a81d465b10aabaf6e0ffc99e7ea2c25bef5a
staging: gasket: page table: fixup error path allocating coherent mem

Correctly clean up data structure state in gasket_alloc_coherent_memory
error path, to ensure no double free on the stale pointer value.

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