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:
235e12a
)
b=17933
author
nathan
<nathan>
Mon, 8 Dec 2008 22:01:45 +0000
(22:01 +0000)
committer
nathan
<nathan>
Mon, 8 Dec 2008 22:01:45 +0000
(22:01 +0000)
CMD seems to add an unnamed link
lustre/mdd/mdd_dir.c
patch
|
blob
|
history
diff --git
a/lustre/mdd/mdd_dir.c
b/lustre/mdd/mdd_dir.c
index
309025b
..
9b54aba
100644
(file)
--- a/
lustre/mdd/mdd_dir.c
+++ b/
lustre/mdd/mdd_dir.c
@@
-2271,6
+2271,9
@@
static int __mdd_links_add(const struct lu_env *env, struct lu_buf *buf,
struct link_ea_entry *lee;
int reclen;
+ if (lname == NULL || pfid == NULL)
+ return -EINVAL;
+
/* Make sure our buf is big enough for the new one */
leh = buf->lb_buf;
reclen = lname->ln_namelen + sizeof(struct link_ea_entry);