Commit d3684330 authored by Steve Kinneberg's avatar Steve Kinneberg Committed by Ben Collins

IEEE1394(r1173): Small change to csr1212 prevent possible kernel panics from...

IEEE1394(r1173): Small change to csr1212 prevent possible kernel panics from improper directory parsing.
parent bd3895ad
......@@ -704,10 +704,11 @@ void _csr1212_destroy_keyval(struct csr1212_keyval *kv)
if (k->key.type == CSR1212_KV_TYPE_DIRECTORY) {
/* If the current entry is a directory, then move all
* the entries to the destruction list. */
tail->next = k->value.directory.dentries_head;
if (k->value.directory.dentries_head)
if (k->value.directory.dentries_head) {
tail->next = k->value.directory.dentries_head;
k->value.directory.dentries_head->prev = tail;
tail = k->value.directory.dentries_tail;
tail = k->value.directory.dentries_tail;
}
}
free_keyval(k);
k = a;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment