lkml.org 
[lkml]   [2020]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] hinic: fix potential resource leak
From
Date
Hi luobin,

On 2020/9/17 11:44, luobin (L) wrote:
> On 2020/9/17 11:03, Wei Li wrote:
>> + err = irq_set_affinity_hint(rq->irq, &rq->affinity_mask);
>> + if (err)
>> + goto err_irq;
>> +
>> + return 0;
>> +
>> +err_irq:
>> + rx_del_napi(rxq);
>> + return err;
> If irq_set_affinity_hint fails, irq should be freed as well.
>
Yes, indeed.
I will fix that in the next spin.

Thanks,
Wei

\
 
 \ /
  Last update: 2020-09-17 05:56    [W:0.031 / U:1.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site