ALT Linux Bugzilla
– Attachment 4737 Details for
Bug 24873
Crash (NFS server?)
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
nfsd-fix-NULL-dereference-in-nfsd_statfs.patch
nfsd-fix-NULL-dereference-in-nfsd_statfs.patch (text/plain), 662 bytes, created by
Michael Shigorin
on 2011-01-07 17:52:08 MSK
(
hide
)
Description:
nfsd-fix-NULL-dereference-in-nfsd_statfs.patch
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2011-01-07 17:52:08 MSK
Size:
662 bytes
patch
obsolete
>diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c >index 96360a8..661a6cf 100644 >--- a/fs/nfsd/vfs.c >+++ b/fs/nfsd/vfs.c >@@ -2033,15 +2033,17 @@ out: > __be32 > nfsd_statfs(struct svc_rqst *rqstp, struct svc_fh *fhp, struct kstatfs *stat, int access) > { >- struct path path = { >- .mnt = fhp->fh_export->ex_path.mnt, >- .dentry = fhp->fh_dentry, >- }; > __be32 err; > > err = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP | access); >- if (!err && vfs_statfs(&path, stat)) >- err = nfserr_io; >+ if (!err) { >+ struct path path = { >+ .mnt = fhp->fh_export->ex_path.mnt, >+ .dentry = fhp->fh_dentry, >+ }; >+ if (vfs_statfs(&path, stat)) >+ err = nfserr_io; >+ } > return err; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 24873
: 4737