X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fcifs%2Fioctl.c;h=f94650683a00355d48f6fa545e72baaf6721e95e;hb=2aedd192f799c362ccefc3c316f0c4bd5154126b;hp=0088a5b5256460cd73737ef12db8e718a0c6902f;hpb=e86322f611eef95aafaf726fd3965e5b211f1985;p=~andy%2Flinux diff --git a/fs/cifs/ioctl.c b/fs/cifs/ioctl.c index 0088a5b5256..f94650683a0 100644 --- a/fs/cifs/ioctl.c +++ b/fs/cifs/ioctl.c @@ -65,7 +65,7 @@ long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) switch (command) { case CIFS_IOC_CHECKUMOUNT: cFYI(1, ("User unmount attempted")); - if (cifs_sb->mnt_uid == current->uid) + if (cifs_sb->mnt_uid == current_uid()) rc = 0; else { rc = -EACCES;