Skip to contentSkip to conversation

SQUASHME: pnfs-submit: avoid NULL dereference in filelayout_commit dprintk

PATCH In review Fred Isaman 2 participants 2 messages Jun 13, 2010 – Jun 15, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SQUASHME: pnfs-submit: avoid NULL dereference in filelayout_commit dprintk

ds_nfs_client will be NULL when filelayout_commit is called.

---
 fs/nfs/nfs4filelayout.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
fs/nfs/nfs4filelayout.c +1 -2
index b82e4ff..e6d45b8 100644
@@ -569,8 +569,7 @@ filelayout_commit(struct pnfs_layout_type *layoutid, int sync,
 	struct nfs_write_data *dsdata;
 	struct nfs4_pnfs_ds *ds;
 
-	dprintk("%s data %p pnfs_client %p sync %d\n",
-		__func__, data, data->fldata.ds_nfs_client->cl_rpcclient, sync);
+	dprintk("%s data %p sync %d\n", __func__, data, sync);
 
 	/* Alloc room for both in one go */
 	ds_page_list = kzalloc((NFS4_PNFS_MAX_MULTI_CNT + 1) *
Signature · 1 line
1.6.6.1
#1 lore raw

Merged at pnfs-all-2.6.35-rc3-2010-06-14

Thanks!

Benny

Quoted 21 lines · Fred Isaman

ds_nfs_client will be NULL when filelayout_commit is called.

---
 fs/nfs/nfs4filelayout.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
fs/nfs/nfs4filelayout.c +1 -2
index b82e4ff..e6d45b8 100644
@@ -569,8 +569,7 @@ filelayout_commit(struct pnfs_layout_type *layoutid, int sync,
 	struct nfs_write_data *dsdata;
 	struct nfs4_pnfs_ds *ds;
 
-	dprintk("%s data %p pnfs_client %p sync %d\n",
-		__func__, data, data->fldata.ds_nfs_client->cl_rpcclient, sync);
+	dprintk("%s data %p sync %d\n", __func__, data, sync);
 
 	/* Alloc room for both in one go */
 	ds_page_list = kzalloc((NFS4_PNFS_MAX_MULTI_CNT + 1) *