Commit 20cd7809 authored by Jody McIntyre's avatar Jody McIntyre

We need to update the old csr1212 cache's bus generation after a bus
reset once we decide it is still valid.
Closes a vmalloc leak on *every* bus reset.
Signed-off-by: default avatarJim Radford <radford@indigita.com>
Signed-off-by: default avatarJody McIntyre <scjody@modernduck.com>
parent 0d209407
...@@ -1152,6 +1152,13 @@ static void nodemgr_update_node(struct node_entry *ne, struct csr1212_csr *csr, ...@@ -1152,6 +1152,13 @@ static void nodemgr_update_node(struct node_entry *ne, struct csr1212_csr *csr,
/* Mark the node as new, so it gets re-probed */ /* Mark the node as new, so it gets re-probed */
ne->needs_probe = 1; ne->needs_probe = 1;
} else {
/* old cache is valid, so update its generation */
struct nodemgr_csr_info *ci = ne->csr->private;
ci->generation = generation;
/* free the partially filled now unneeded new cache */
kfree(csr->private);
csr1212_destroy_csr(csr);
} }
if (ne->in_limbo) if (ne->in_limbo)
......
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