All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix incorrect assignment
@ 2007-10-24 20:14 Prasad P
  2007-10-24 20:57 ` J. Bruce Fields
  0 siblings, 1 reply; 6+ messages in thread
From: Prasad P @ 2007-10-24 20:14 UTC (permalink / raw)
  To: nfs


[-- Attachment #1.1: Type: text/plain, Size: 739 bytes --]



Dereferenced pointer "dentry" without checking and assigned to inode
in the declaration.

Cc: Steve French <smfltc@us.ibm.com>
Signed-off-by: Prasad V Potluri <pvp@us.ibm.com>
---

diff -uprN a/fs/nfsd/nfs2acl.c b/fs/nfsd/nfs2acl.c
--- a/fs/nfsd/nfs2acl.c 2007-10-09 15:31:38.000000000 -0500
+++ b/fs/nfsd/nfs2acl.c 2007-10-24 14:03:13.000000000 -0500
@@ -221,7 +221,7 @@ static int nfsaclsvc_encode_getaclres(st
            struct nfsd3_getaclres *resp)
 {
      struct dentry *dentry = resp->fh.fh_dentry;
-     struct inode *inode = dentry->d_inode;
+     struct inode *inode;
      struct kvec *head = rqstp->rq_res.head;
      unsigned int base;
      int n;
--
Thanks.

Regards,
Prasad Potluri
email: pvp at-sign us dot ibm dot com

[-- Attachment #1.2: Type: text/html, Size: 861 bytes --]

[-- Attachment #2: Type: text/plain, Size: 314 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

[-- Attachment #3: Type: text/plain, Size: 140 bytes --]

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-10-25 23:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-24 20:14 [PATCH] Fix incorrect assignment Prasad P
2007-10-24 20:57 ` J. Bruce Fields
2007-10-25 15:26   ` Prasad P
2007-10-25 16:03     ` J. Bruce Fields
2007-10-25 17:58       ` Steve French
2007-10-25 23:12         ` J. Bruce Fields

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.