lkml.org 
[lkml]   [2017]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 04/55] genirq/msi: Prevent overwriting domain name
    Prevent overwriting an already assigned domain name. Remove the extra check
    for chip->name, because if domain->name is NULL overwriting it with NULL is
    not a problem.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    ---
    kernel/irq/msi.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    --- a/kernel/irq/msi.c
    +++ b/kernel/irq/msi.c
    @@ -274,7 +274,8 @@ struct irq_domain *msi_create_irq_domain

    domain = irq_domain_create_hierarchy(parent, IRQ_DOMAIN_FLAG_MSI, 0,
    fwnode, &msi_domain_ops, info);
    - if (domain && info->chip && info->chip->name)
    +
    + if (domain && !domain->name && info->chip)
    domain->name = info->chip->name;

    return domain;

    \
     
     \ /
      Last update: 2017-06-20 02:14    [W:4.536 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site