J. Bruce Fields
4b2ca38ad6
knfsd: nfsd4: fix handling of acl errrors
...
nfs4_acl_nfsv4_to_posix() returns an error and returns any posix acls
calculated in two caller-provided pointers. It was setting these pointers to
-errno in some error cases, resulting in nfsd4_set_nfs4_acl() calling
posix_acl_release() with a -errno as an argument.
Fix both the caller and the callee, by modifying nfsd4_set_nfs4_acl() to
stop relying on the passed-in-pointers being left as NULL in the error
case, and by modifying nfs4_acl_nfsv4_to_posix() to stop returning
garbage in those pointers.
Thanks to Alex Soule for reporting the bug.
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Cc: Alexander Soule <soule@umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-17 10:23:07 -07:00
..
2007-07-14 15:14:14 -05:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:13 +02:00
2007-07-16 09:05:43 -07:00
2007-05-11 08:29:36 -07:00
2007-05-11 08:29:36 -07:00
2007-05-17 05:23:04 -07:00
2007-07-10 08:04:13 +02:00
2007-07-17 10:23:06 -07:00
2007-07-15 16:40:51 -07:00
2007-07-10 17:18:59 -07:00
2007-07-11 16:09:00 -07:00
2007-07-10 17:10:56 -07:00
2007-07-11 16:09:06 -07:00
2007-07-17 10:23:06 -07:00
2007-07-17 10:23:06 -07:00
2007-07-17 10:23:06 -07:00
2007-07-17 10:23:06 -07:00
2007-07-17 10:23:06 -07:00
2007-07-17 10:23:06 -07:00
2007-07-16 09:05:41 -07:00
2007-07-10 08:04:13 +02:00
2007-07-17 10:23:06 -07:00
2007-07-10 08:04:13 +02:00
2007-07-16 09:05:49 -07:00
2007-07-10 08:04:13 +02:00
2007-07-10 08:04:13 +02:00
2007-07-16 09:05:46 -07:00
2007-07-17 10:23:06 -07:00
2007-07-16 09:05:48 -07:00
2007-07-16 09:05:48 -07:00
2007-07-17 10:23:02 -07:00
2007-07-17 10:23:06 -07:00
2007-07-17 10:23:07 -07:00
2007-07-10 08:04:13 +02:00
2007-07-16 09:05:43 -07:00
2007-07-17 10:23:02 -07:00
2007-07-17 10:23:07 -07:00
2007-07-16 09:05:52 -07:00
2007-07-17 10:23:06 -07:00
2007-07-17 10:23:06 -07:00
2007-05-17 05:23:04 -07:00
2007-07-16 12:01:30 -07:00
2007-07-17 10:23:03 -07:00
2007-07-10 08:04:13 +02:00
2007-07-17 10:22:59 -07:00
2007-07-17 10:23:06 -07:00
2007-05-17 05:23:04 -07:00
2007-07-10 08:04:13 +02:00
2007-07-11 16:09:09 -07:00
2007-07-10 08:04:13 +02:00
2007-07-16 09:05:51 -07:00
2007-07-16 09:05:50 -07:00
2007-07-17 10:23:06 -07:00
2007-05-11 08:29:37 -07:00
2007-07-16 09:05:52 -07:00
2007-07-10 08:04:15 +02:00
2007-07-16 09:05:47 -07:00
2007-06-08 17:23:32 -07:00
2007-05-21 09:18:19 -07:00
2007-07-10 08:03:34 +02:00
2007-07-16 09:05:50 -07:00
2007-07-17 10:23:02 -07:00
2007-07-16 09:05:52 -07:00
2007-05-23 20:14:12 -07:00
2007-07-17 10:23:00 -07:00
2007-07-03 18:23:23 -07:00
2007-07-17 10:23:00 -07:00
2007-07-16 09:05:36 -07:00
2007-05-18 13:09:34 -07:00
2007-05-15 08:54:00 -07:00
2007-05-23 20:14:13 -07:00
2007-05-21 09:18:19 -07:00
2007-07-17 10:23:00 -07:00
2007-07-16 09:05:48 -07:00
2007-07-16 10:32:02 -07:00
2007-05-21 14:34:00 +09:00
2007-05-09 06:44:57 +02:00
2007-05-17 05:23:04 -07:00
2007-05-11 08:29:36 -07:00
2007-07-17 10:23:00 -07:00
2007-05-11 08:29:35 -07:00
2007-05-11 05:38:26 -04:00
2007-07-16 09:05:50 -07:00
2007-07-16 09:05:45 -07:00
2007-07-10 08:04:16 +02:00
2007-07-16 09:05:48 -07:00
2007-07-10 08:04:15 +02:00
2007-05-09 07:10:02 +02:00
2007-07-16 09:05:45 -07:00
2007-06-28 11:34:54 -07:00
2007-07-16 15:02:48 +02:00
2007-07-16 09:05:46 -07:00
2007-06-28 11:38:30 -07:00
2007-05-18 13:09:34 -07:00
2007-07-16 12:14:08 -07:00
2007-05-11 05:38:26 -04:00