CMD seems to add an unnamed link
struct link_ea_entry *lee;
int reclen;
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);
/* Make sure our buf is big enough for the new one */
leh = buf->lb_buf;
reclen = lname->ln_namelen + sizeof(struct link_ea_entry);