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-03 17:42:25 -07:00
2018-04-01 19:49:34 -04:00
2018-04-05 21:36:25 -07:00
2018-04-06 14:19:26 -07:00
2018-04-01 21:43:02 +03:00
2018-04-06 18:31:06 -07:00
2018-04-07 16:46:56 -07:00
2018-04-05 21:29:35 -07:00
2018-04-05 21:21:08 -07:00
2018-04-05 21:29:35 -07:00
2018-03-29 13:06:08 +02:00
2018-04-04 17:11:08 -07:00
2018-04-05 21:36:26 -07:00
2018-03-22 10:51:35 +05:30
2018-04-05 14:21:13 -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-07 13:31:23 -07:00
2018-04-05 11:53:34 -07:00
2018-03-19 16:31:07 +01: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-07 12:36:18 -07:00
2018-04-05 14:27:02 -07:00
2018-04-05 09:51:41 -07:00
2018-04-06 17:35:43 -07:00
2018-04-05 13:21:57 -07:00
2018-04-05 21:36:27 -07:00
2018-04-04 18:56:27 -07:00
2018-04-03 14:04:18 -07:00
2018-03-20 20:28:00 +01:00
2018-03-29 17:29:09 -06:00
2018-04-07 12:08:19 -07:00
2018-03-20 11:15:54 +08:00
2018-03-19 14:20:24 -05:00
2018-04-06 11:50:19 -07:00
2018-04-06 11:07:08 -07:00
2018-03-26 11:13:09 +02: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-11 10:41:36 -04: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-03-29 15:07:48 -04:00
2018-03-27 18:52:22 +02:00
2018-04-04 20:07:20 -07:00
2018-04-07 12:08:19 -07:00
2018-04-09 09:26:36 -07:00
2018-04-05 21:29:35 -07:00
2018-04-05 21:21:08 -07:00
2018-04-05 09:51:41 -07:00
2018-04-05 11:56:35 -07:00
2018-04-05 21:21:08 -07:00
2018-03-19 00:02:24 +01:00
2018-04-05 21:21:08 -07:00
2018-03-28 10:33:53 +08:00
2018-03-27 11:03:43 +02:00
2018-04-05 11:56:35 -07:00
2018-04-09 09:04:10 -07:00
2018-04-01 20:07:00 -04: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-06 14:19:26 -07:00
2018-04-05 14:27:02 -07:00
2018-04-09 09:04:10 -07:00
2018-04-07 11:11:41 -07:00
2018-04-06 19:44:27 -07:00
2018-04-11 10:54:06 -04:00
2018-04-09 09:04:10 -07:00
2018-04-05 21:36:27 -07:00
2018-04-05 09:51:41 -07:00
2018-03-20 10:01:56 +01:00
2018-03-19 10:26:46 +01:00
2018-03-29 13:38:10 +03:00