]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: visorbus change -1 return values
authorErik Arfvidson <erik.arfvidson@unisys.com>
Sat, 14 May 2016 03:17:19 +0000 (23:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 05:58:16 +0000 (22:58 -0700)
commit904ea8043467ad9465ab8f380e1b59947bec8431
tree9f31b525d77731ef1d82e31cd49d6d5d2c788507
parent3ef739056cf01c311ad8e8c359e31b39943d0c10
staging: unisys: visorbus change -1 return values

This patch changes the vague -1 return values to -EFAULT since
it would be the most appropriate, given that this error
would only occur in an unexpected bad offset field.
Resulting in a bad address.

Signed-off-by: Erik Arfvidson <erik.arfvidson@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorbus_main.c