diff options
Diffstat (limited to 'fs/exportfs/expfs.c')
-rw-r--r-- | fs/exportfs/expfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c index 29ab099e3e08..10f137381ac7 100644 --- a/fs/exportfs/expfs.c +++ b/fs/exportfs/expfs.c | |||
@@ -357,7 +357,7 @@ int exportfs_encode_fh(struct dentry *dentry, struct fid *fid, int *max_len, | |||
357 | */ | 357 | */ |
358 | parent = p->d_inode; | 358 | parent = p->d_inode; |
359 | } | 359 | } |
360 | if (nop->encode_fh) | 360 | if (nop && nop->encode_fh) |
361 | error = nop->encode_fh(inode, fid->raw, max_len, parent); | 361 | error = nop->encode_fh(inode, fid->raw, max_len, parent); |
362 | else | 362 | else |
363 | error = export_encode_fh(inode, fid, max_len, parent); | 363 | error = export_encode_fh(inode, fid, max_len, parent); |