staging: gasket: page table: return valid error code on map fail
authorTodd Poynor <toddpoynor@google.com>
Mon, 15 Oct 2018 04:59:18 +0000 (21:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Oct 2018 14:30:37 +0000 (16:30 +0200)
commitb1004491c9c2a62a8ca4d939e35b3c21abc8f28a
tree4abc1f4376cd75581959e1e05e761b0c08e12890
parent7fa3069dfcf82d9c84197f7dae2759cc9bf80667
staging: gasket: page table: return valid error code on map fail

Return -EINVAL on mapping failures, instead of -1, which triggers a
checkpatch error.

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