Stefan Hajnoczi ddd3d4081f vhost: return bool from *_access_ok() functions
Currently vhost *_access_ok() functions return int.  This is error-prone
because there are two popular conventions:

1. 0 means failure, 1 means success
2. -errno means failure, 0 means success

Although vhost mostly uses #1, it does not do so consistently.
umem_access_ok() uses #2.

This patch changes the return type from int to bool so that false means
failure and true means success.  This eliminates a potential source of
errors.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-04-11 10:54:06 -04:00
..
2018-04-06 18:31:06 -07:00
2018-04-06 18:31:06 -07:00
2018-04-05 21:29:35 -07:00
2018-04-05 21:29:35 -07:00
2018-04-04 20:07:20 -07:00
2018-04-06 19:21:41 -07:00
2018-03-27 09:51:22 +02:00
2018-03-19 14:18:22 -05:00
2018-04-05 21:03:42 -07:00
2018-04-09 11:42:31 -07:00
2018-03-27 15:57:19 +02:00
2018-04-04 20:07:20 -07:00
2018-04-05 14:27:02 -07:00
2018-04-04 18:56:27 -07:00
2018-04-07 12:08:19 -07:00
2018-03-19 14:20:24 -05:00
2018-04-07 12:08:19 -07:00
2018-04-05 14:27:02 -07:00
2018-04-06 12:15:41 -07:00
2018-04-05 14:27:02 -07:00
2018-04-05 14:27:02 -07:00
2018-04-04 20:07:20 -07:00
2018-04-06 18:31:06 -07:00
2018-04-04 20:07:20 -07:00
2018-04-07 12:08:19 -07:00
2018-04-05 21:29:35 -07:00
2018-04-05 21:21:08 -07:00
2018-04-05 21:21:08 -07:00
2018-04-05 21:21:08 -07:00
2018-04-05 15:05:53 -07:00
2018-04-05 21:29:35 -07:00
2018-04-03 12:06:21 -07:00
2018-04-05 14:27:02 -07:00
2018-04-06 19:44:27 -07:00
2018-03-29 13:38:10 +03:00