Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a9d5d6
)
Prudent check for NULL intent before dereferencing.
author
adilger
<adilger>
Tue, 5 Nov 2002 20:17:49 +0000
(20:17 +0000)
committer
adilger
<adilger>
Tue, 5 Nov 2002 20:17:49 +0000
(20:17 +0000)
lustre/llite/namei.c
patch
|
blob
|
history
diff --git
a/lustre/llite/namei.c
b/lustre/llite/namei.c
index
bf9576c
..
7e61788
100644
(file)
--- a/
lustre/llite/namei.c
+++ b/
lustre/llite/namei.c
@@
-640,7
+640,7
@@
static int ll_create(struct inode *dir, struct dentry *dentry, int mode)
if (IS_ERR(inode))
RETURN(PTR_ERR(inode));
- if (it->it_disposition) {
+ if (it
&& it
->it_disposition) {
struct ll_inode_info *lli = ll_i2info(inode);
memcpy(&lli->lli_intent_lock_handle, it->it_lock_handle,
sizeof(lli->lli_intent_lock_handle));