Skip to content
Commit ce000c61 authored by Wei Li's avatar Wei Li Committed by David S. Miller
Browse files

hinic: fix potential resource leak



In rx_request_irq(), it will just return what irq_set_affinity_hint()
returns. If it is failed, the napi and irq requested are not freed
properly. So add exits for failures to handle these.

Signed-off-by: default avatarWei Li <liwei391@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0dfdbc74
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