diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/inode.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index f3900427ffab..87ba7cf99cd7 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c | |||
@@ -620,12 +620,16 @@ spufs_parse_options(struct super_block *sb, char *options, struct inode *root) | |||
620 | case Opt_uid: | 620 | case Opt_uid: |
621 | if (match_int(&args[0], &option)) | 621 | if (match_int(&args[0], &option)) |
622 | return 0; | 622 | return 0; |
623 | root->i_uid = option; | 623 | root->i_uid = make_kuid(current_user_ns(), option); |
624 | if (!uid_valid(root->i_uid)) | ||
625 | return 0; | ||
624 | break; | 626 | break; |
625 | case Opt_gid: | 627 | case Opt_gid: |
626 | if (match_int(&args[0], &option)) | 628 | if (match_int(&args[0], &option)) |
627 | return 0; | 629 | return 0; |
628 | root->i_gid = option; | 630 | root->i_gid = make_kgid(current_user_ns(), option); |
631 | if (!gid_valid(root->i_gid)) | ||
632 | return 0; | ||
629 | break; | 633 | break; |
630 | case Opt_mode: | 634 | case Opt_mode: |
631 | if (match_octal(&args[0], &option)) | 635 | if (match_octal(&args[0], &option)) |