diff options
author | Jeffy Chen <[email protected]> | 2017-09-28 12:37:31 +0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2017-09-28 12:18:59 +0200 |
commit | 72364d320644c12948786962673772f271039a4a (patch) | |
tree | 6a4838d855ddcf297eef3ef9c698470992a8a364 /lib/pm-notifier-error-inject.c | |
parent | 7755d83e48397e822aac751b1545f8bcf71d133e (diff) |
irq/generic-chip: Don't replace domain's name
When generic irq chips are allocated for an irq domain the domain name is
set to the irq chip name. That was done to have named domains before the
recent changes which enforce domain naming were done.
Since then the overwrite causes a memory leak when the domain name is
dynamically allocated and even worse it would cause the domain free code to
free the wrong name pointer, which might point to a constant.
Remove the name assignment to prevent this.
Fixes: d59f6617eef0 ("genirq: Allow fwnode to carry name information only")
Signed-off-by: Jeffy Chen <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions