staging: gasket: gasket_mmap return error instead of valid BAR index
authorTodd Poynor <toddpoynor@google.com>
Fri, 20 Jul 2018 03:49:07 +0000 (20:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jul 2018 06:50:35 +0000 (08:50 +0200)
commite80d8afc97fb243833d9939b5098a89379433b3c
treed014c5a78e9139ab51f90e895b0c94bb1e357e1a
parentec45f01668e42f3dc3f18e11fa8655ad150ca250
staging: gasket: gasket_mmap return error instead of valid BAR index

When offset to be mapped matches both a BAR region and a coherent mapped
region return an error as intended, not the BAR index.

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